summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/ConfigParser.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-09-13 01:42:20 +0200
committerArne Schwabe <arne@rfc2549.org>2012-09-13 01:42:20 +0200
commit93213caa1c1456836dc0f9d2ade45eed1a3d4e4a (patch)
tree2e5dfc3557e2cd6d2093db9b30839e1fd93e87e6 /src/de/blinkt/openvpn/ConfigParser.java
parenteec4659b127c69a5005be439efad148e98648c69 (diff)
Add support for persist-tun option (closes issue #83)
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigParser.java')
-rw-r--r--src/de/blinkt/openvpn/ConfigParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index 8ee05e23..2ee6061d 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -223,7 +223,6 @@ public class ConfigParser {
"management",
"management-query-passwords",
"pause-exit",
- "persist-tun",
"persist-key",
"register-dns",
"route-delay",
@@ -433,6 +432,9 @@ public class ConfigParser {
if(getOption("nobind", 0, 0) != null)
np.mNobind=true;
+ if(getOption("persist-tun", 0,0) != null)
+ np.mPersistTun=true;
+
Vector<String> authuser = getOption("auth-user-pass",0,1);
if(authuser !=null){