fix broken subscriptions #2541
Medium1992
started this conversation in
Ideas
Replies: 1 comment
-
|
I tried to assemble a test binary image. Yes, with the help of AI, I asked to patch it... Honestly, I just want to use your native compiled binary, so I ask you to change this behavior of the logic. Many will be grateful to you. Here's what I tried to change in version 1.19.19, from dockerfile, and this work RUN sed -i '/^import (/a\ "github.com/metacubex/mihomo/log"' \
adapter/provider/provider.go
RUN sed -i 's@return nil, fmt.Errorf("proxy %d error: %w", idx, err)@name, _ := mapping["name"].(string)\n log.Warnln("[Provider %s] skip invalid proxy (idx=%d, name=%q): %v", pdName, idx, name, err)\n continue@g' \
adapter/provider/provider.goAnd I think you understand where to change what) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
Please ignore invalid links in subscriptions. People are really suffering and wondering why you are dropping the entire subscription when only a few proxies are invalid. Your position is partly understandable in terms of using normal subscriptions (#2128). But people are really suffering and don't understand why you can't just skip invalid links.
As a result, people create intermediate binaries on GO (https://github.com/Viktor45/sub-filter/) to filter subscriptions so that Mihomo will accept them, but why do that if Mihomo can do it itself?
There's no need to filter and correct anything, just don't add invalid ones.
Beta Was this translation helpful? Give feedback.
All reactions