From 83e5afb8349b62c858fe3a1803404c138e326e1b Mon Sep 17 00:00:00 2001 From: Sean Leonard Date: Tue, 3 Dec 2013 21:28:04 -0800 Subject: Revert "No new routes if openvpn is already running." This reverts commit 5b772c23c3f45405f30de4a180fe47dbcb2fdfc4. --- src/se/leap/openvpn/OpenVpnManagementThread.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/se/leap/openvpn/OpenVpnManagementThread.java b/src/se/leap/openvpn/OpenVpnManagementThread.java index 78ce5a2b..2445c38e 100644 --- a/src/se/leap/openvpn/OpenVpnManagementThread.java +++ b/src/se/leap/openvpn/OpenVpnManagementThread.java @@ -333,8 +333,7 @@ public class OpenVpnManagementThread implements Runnable { mOpenVPNService.setDomain(extra); } else if (needed.equals("ROUTE")) { String[] routeparts = extra.split(" "); - if(!mOpenVPNService.isRunning()) // We cannot add routes to an existing openvpn session - mOpenVPNService.addRoute(routeparts[0], routeparts[1]); + mOpenVPNService.addRoute(routeparts[0], routeparts[1]); } else if (needed.equals("ROUTE6")) { mOpenVPNService.addRoutev6(extra); } else if (needed.equals("IFCONFIG")) { -- cgit v1.2.3