Break proto string into components in the properties class instead of configuration class

This commit is contained in:
Sergey Abramchuk
2017-05-10 18:02:09 +03:00
parent a128cf248f
commit 90c6a18ba6
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ using namespace openvpn;
_remotePort = port;
NSString *currentProto = [NSString stringWithUTF8String:eval.remoteProto.c_str()];
NSString *currentProto = [[[NSString stringWithUTF8String:eval.remoteProto.c_str()] componentsSeparatedByString:@"-"] firstObject];
_remoteProto = [OpenVPNConfiguration getTransportProtocolFromValue:currentProto];
_servers = nil;