Clash subscription link fails to import
Search first
- [x] I searched and no similar issues were found
Platform/OS
Android
OS version
Android 16
Hiddify Version
v4.0.4
What Happened?
Failed to import using the Clash subscription link, with the error message “Unable to determine config format.” However, subscriptions work normally in Clash Meta, FlClash, and other software.
Minimal Reproducible Example (MRE)
-
Tap the “+” icon in the top-right corner
-
Tap “Manual +”
-
Enter the Clash subscription link
-
Wait a moment; a failure prompt will appear
Expected Behavior
According to the GitHub documentation, Clash/Clash Meta should be able to subscribe normally, but currently it is not working. Several links have been tried and all failed. Therefore, I would like to request a check to see if the kernel supports Clash/ClashMeta.
Additional Context
Application Config Options
No response
Relevant log output
No response
Are you willing to submit a PR? If you know how to fix the bug.
- [x] I'm willing to submit a PR (Thank you!)
Me too.
Yes; Same error after update. It was working in previous version
same. are there any updates from the devs? or do i have to use an older version?
我也是
ot cause found: In lib/features/profile/data/profile_parser.dart line 204, expandRemoteLinesInParallel uses line.trim() which strips YAML indentation, destroying Clash config structure.
Fix: Change line.trim() to line.trimRight()