summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-12-04 18:06:15 +0100
committerParménides GV <parmegv@sdf.org>2013-12-04 18:06:15 +0100
commit6f31f91a82f9822a34ae55c5275130d23be29f4b (patch)
treee7fc5efa9b2ac6848ccf3cca1a8e57cb03e970b8
parent90732260daaba438f49e510ed987284bcb419f4d (diff)
parent83e5afb8349b62c858fe3a1803404c138e326e1b (diff)
Merge branch 'hotfix/vpn-routes-never-set' into develop
-rw-r--r--src/se/leap/openvpn/OpenVpnManagementThread.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/se/leap/openvpn/OpenVpnManagementThread.java b/src/se/leap/openvpn/OpenVpnManagementThread.java
index 287de58e..27a3db65 100644
--- a/src/se/leap/openvpn/OpenVpnManagementThread.java
+++ b/src/se/leap/openvpn/OpenVpnManagementThread.java
@@ -344,8 +344,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")) {