summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-12-03 21:28:04 -0800
committerSean Leonard <meanderingcode@aetherislands.net>2013-12-03 21:28:04 -0800
commit83e5afb8349b62c858fe3a1803404c138e326e1b (patch)
tree91be4c904ccbe59a8b18918a570af498e8ca08ed /src/se/leap
parentdc417fbfc67d8edaad58effde3a6a73fbeeab1da (diff)
Revert "No new routes if openvpn is already running."
This reverts commit 5b772c23c3f45405f30de4a180fe47dbcb2fdfc4.
Diffstat (limited to 'src/se/leap')
-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 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")) {