Skip to content

Add HTTP proxy exclusion list support (Feature #482)#595

Open
qwldcl-del wants to merge 1 commit intoGenymobile:masterfrom
qwldcl-del:master
Open

Add HTTP proxy exclusion list support (Feature #482)#595
qwldcl-del wants to merge 1 commit intoGenymobile:masterfrom
qwldcl-del:master

Conversation

@qwldcl-del
Copy link

This PR implements the HTTP proxy exclusion list feature requested in issue #482.

Changes:

  1. VpnConfiguration.java: Added field and updated Parcelable implementation.

  2. GnirehtetActivity.java: Added to accept the exclusion list parameter.

  3. GnirehtetService.java: Added method that uses with to configure the HTTP proxy with exclusion list. Requires Android 10 (API 29) or higher.

  4. CommandLineArguments.java: Added and command line option.

  5. Main.java: Updated all relevant commands (run, autorun, start, autostart, restart) to accept the parameter for proxy exclusion list.

Usage:

gnirehtet run -x domain1.com,domain2.com
gnirehtet start -x example.com,google.com

This allows users to exclude certain domains from being proxied through gnirehtet, solving the issue where users need to bypass the proxy for specific websites while still using the global proxy for all other traffic.

- Add proxyExclusionList field to VpnConfiguration
- Add EXTRA_PROXY_EXCLUSION_LIST to GnirehtetActivity
- Add setupHttpProxy() method in GnirehtetService using VpnService.Builder.setHttpProxy()
- Add -x command line option for proxy exclusion list
- Requires Android 10 (API 29) or higher for proxy exclusion list feature

This allows users to exclude certain domains from being proxied through gnirehtet,
solving issue Genymobile#482 where users need to bypass the proxy for specific websites.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant