You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Import file detected as subscription link instead of profiles #1128
Title: Bug: Import file detected as subscription link instead of profiles
Description:
When importing a file containing both configs and URLs (e.g., Telegram links), the app treats it as a subscription link instead of importing the configs directly.
Steps to Reproduce:
Open Import -> From File.
Select a file containing configs mixed with URLs.
App prompts to "Add New Subscription".
Confirm import.
Expected Behavior:
Configs from the file are added to the list.
Actual Behavior:
Subscription is added/prompted, but the config list remains empty.
Note:
This often happens with free config files that include promo links inside the text.
Logs:
2026/02/21 18:52:39 [Debug] [FormatsKt] Try parse http link: https://t.me/test
2026/02/21 18:52:39 [Warning] [FormatsKt] java.lang.IllegalStateException: Not http proxy
at io.nekohasekai.sagernet.fmt.http.HttpFmtKt.parseHttp(SourceFile:97)
at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies$parseLink(SourceFile:130)
at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies(SourceFile:128)
at io.nekohasekai.sagernet.group.RawUpdater.parseRaw(SourceFile:369)
at io.nekohasekai.sagernet.group.RawUpdater.parseRaw$default(SourceFile:7)
at io.nekohasekai.sagernet.group.RawUpdater.doUpdate(SourceFile:22)
at io.nekohasekai.sagernet.group.GroupUpdater$Companion$executeUpdate$2.invokeSuspend(SourceFile:261)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:6)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:110)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)
2026/02/21 18:52:39 [Warning] [GroupUpdater$Companion$executeUpdate$2] io.nekohasekai.sagernet.ktx.SubscriptionFoundException
at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies$parseLink(SourceFile:199)
at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies(SourceFile:128)
at io.nekohasekai.sagernet.group.RawUpdater.parseRaw(SourceFile:369)
...
Activity
Security & stability fixes (local proxy, crashes, import) (#44)
fix(fmt): 訂閱裡的官網/客服連結不再被建成永遠超時的假節點