From d8f9e134119df735ed5b85726d8f5d156ce12db7 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 19 Nov 2013 17:07:57 +0100 Subject: Support rport in the config parser --- src/de/blinkt/openvpn/core/ConfigParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 proto = getOption("proto", 1,1); + Vector rport = getOption("rport", 1,1); + if(port!=null){ + np.mServerPort = port.get(1); + } + + Vector proto = getOption("proto", 1,1); if(proto!=null){ np.mUseUdp=isUdpProto(proto.get(1)); } -- cgit v1.2.3