From b70cb63f91b260abae0d65ccd97ff88a069d9f26 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 13 Aug 2012 16:40:43 +0200 Subject: Ignore proxy for UDP connections --- src/de/blinkt/openvpn/OpenVpnManagementThread.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/de') diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java index 45aaead..dcadfdb 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; -- cgit v1.2.3