shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.23k stars 11.57k forks source link

Blacklist mode in Custom Rules #3146

Open talentlessguy opened 9 months ago

talentlessguy commented 9 months ago

Please read contributing guidelines. Thanks.

Is your feature request related to a problem? Please describe.

I would like to be able to proxy all the traffic except specific hosts. Currently there's no way to do it. There's one old post the tells to edit /etc/hosts, but this isn't a viable solution because a) /etc/hosts is root-protected b) such way of configuration is not portable.

Describe the solution you'd like Blacklist mode already is supported in ShadowSocks X and if I remember correctly, ShadowSocks for Windows as well. I would suggest to have a custom option in those three dots on a "Custom Rules" page, as "Blacklist" and there to to write the regex or hostname (preferably regex)

Describe alternatives you've considered None at the moment, right now this isn't possible on a regular Android device. I've tried a regex to exclude a hostname, the app fails to parse it.

Additional context

N/A