summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/OpenVpnManagementThread.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-13 16:40:43 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-13 16:40:43 +0200
commitd50f18d33452dd2edd48e000f6d8694336d26533 (patch)
tree3d92b7756b0bda6dd343d0b5a21e82af72a39634 /src/de/blinkt/openvpn/OpenVpnManagementThread.java
parentc6c06255511802ef07e3b88b4089017a4ba1fbdb (diff)
Ignore proxy for UDP connections
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnManagementThread.java')
-rw-r--r--src/de/blinkt/openvpn/OpenVpnManagementThread.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
index 45aaeadf..dcadfdbd 100644
--- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java
+++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
@@ -231,8 +231,16 @@ public class OpenVpnManagementThread implements Runnable {
}
private void processProxyCMD(String argument) {
+ String[] args = argument.split(",",3);
SocketAddress proxyaddr = ProxyDetection.detectProxy(mProfile);
+
+ if(args.length >= 2) {
+ String proto = args[1];
+ if(proto.equals("UDP")) {
+ proxyaddr=null;
+ }
+ }
if(proxyaddr instanceof InetSocketAddress ){
InetSocketAddress isa = (InetSocketAddress) proxyaddr;