-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
!#if
-!#else
-!#endif
issue with unknown preprocessing tokens
#3393
Comments
I think it's more related to |
The issue is not really related to using SOCKS5 proxies, it's a When For example, the following should not cause all webpages to be blocked:
But it does because Meanwhile the conditional can be rewritten in the form:
... to address the issue in the list until there is a fix in uBO itself. |
#if
-!#else
-!#endif
issue with unknown preprocessing tokens
#if
-!#else
-!#endif
issue with unknown preprocessing tokens!#if
-!#else
-!#endif
issue with unknown preprocessing tokens
Test page: Unknown token, should not block -- was erroneously blocking before fix:
Unknown token, should block -- was erroneously not blocking before fix:
|
Prerequisites
URL(s) where the issue occurs.
https://mikewang000000.github.io/ClashScan/
Description
The provided URL is a demo to fingerprint by scaning open ports on 127.0.0.1. When using a SOCKS5 proxy and also proxy DNS queries, the filter is not able to block access to 127.0.0.1.
I think this is related to this part in the filter list:
I tried copying
/^\w+:\/\/127\.(?:(?:[1-9]?\d|1\d\d|2(?:[0-4]\d|5[0-5]))\.){2}(?:[1-9]?\d|1\d\d|2(?:[0-4]\d|5[0-5]))[:/]/$3p,domain=~localhost|~127.0.0.1|~[::1]|~0.0.0.0|~[::]|~local
to custom filter list, without guarded by#if cap_ipaddress
, it blocks access to 127.0.0.1.Other extensions used
Screenshot(s)
Screenshot(s)
Configuration
Details
The text was updated successfully, but these errors were encountered: