diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-04-15 19:21:13 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-04-15 19:21:13 +0200 |
commit | 6f12f5fffbe9f4eeb4a94e1b3d22b6cc9a3603a5 (patch) | |
tree | 1f6b18c238fa4ad59a476a61eda09391757182f6 /main/src/ui/java | |
parent | 4c7280b50e4fe044f39c42fadf1b3f1789c99658 (diff) |
Implement VPN http proxy support (Android 10+) (closes #1263)
Use dhcp-option PROXY_HTTP 1.2.3.4 8080 or
push "dhcp-option PROXY_HTTP 1.2.3.4 8080"
from a server to use the feature.
Diffstat (limited to 'main/src/ui/java')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java index c250dc5e..419f49e2 100644 --- a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java +++ b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java @@ -108,6 +108,18 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable } @Override + public boolean tun_builder_set_proxy_http(String host, int port) + { + return mService.addHttpProxy(host, port); + } + + @Override + public boolean tun_builder_set_proxy_https(String host, int port) + { + return false; + } + + @Override public int tun_builder_establish() { return mService.openTun().detachFd(); } @@ -271,6 +283,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable public void setPauseCallback(PausedStateCallback callback) { } + @Override public void sendCRResponse(String response) { post_cc_msg("CR_RESPONSE," + response + "\n"); |