summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-12-22 23:26:18 +0100
committerArne Schwabe <arne@rfc2549.org>2012-12-22 23:26:18 +0100
commit6ebfab4ffa0fb2d730bc864a24ee0c4b87fc6b88 (patch)
treea115e3ac6ee285c0ae909a775245f39b0b431aa9 /src
parent586b8bd003be24b32b121b320dafe142e74d2752 (diff)
Parse the tls-remote server string, fix import message (Closes Issue #124)
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/ConfigParser.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index ed8d472..7d93a94 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -451,6 +451,12 @@ public class ConfigParser {
if(connectretrymax!=null)
np.mConnectRetryMax =connectretrymax.get(1);
+ Vector<Vector<String>> remotetls = getAllOption("remote-tls", 1, 1);
+ if(remotetls!=null)
+ if(remotetls.get(1).equals("server"))
+ np.mExpectTLSCert=true;
+ else
+ options.put("remotetls",remotetls);
Vector<String> authuser = getOption("auth-user-pass",0,1);
if(authuser !=null){