summaryrefslogtreecommitdiff
path: root/src/de/blinkt
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-11-19 17:07:57 +0100
committerArne Schwabe <arne@rfc2549.org>2013-11-19 17:07:57 +0100
commitd8f9e134119df735ed5b85726d8f5d156ce12db7 (patch)
tree33b3d7d44c0480e913d6c7288655db208f089360 /src/de/blinkt
parent08fcccc93dce0b7ecdb16af3b5fd2585b452aaf1 (diff)
Support rport in the config parser
Diffstat (limited to 'src/de/blinkt')
-rw-r--r--src/de/blinkt/openvpn/core/ConfigParser.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/core/ConfigParser.java b/src/de/blinkt/openvpn/core/ConfigParser.java
index dcbd636f..6d33a5f7 100644
--- a/src/de/blinkt/openvpn/core/ConfigParser.java
+++ b/src/de/blinkt/openvpn/core/ConfigParser.java
@@ -360,7 +360,12 @@ public class ConfigParser {
np.mServerPort = port.get(1);
}
- Vector<String> proto = getOption("proto", 1,1);
+ Vector<String> rport = getOption("rport", 1,1);
+ if(port!=null){
+ np.mServerPort = port.get(1);
+ }
+
+ Vector<String> proto = getOption("proto", 1,1);
if(proto!=null){
np.mUseUdp=isUdpProto(proto.get(1));
}