From e7dadefabb6c3801dd8f2244968280a50aabea2e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 2 Apr 2019 17:57:02 +0200 Subject: [PATCH] Generalize cipher regex --- TunnelKit/Sources/Core/ConfigurationParser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TunnelKit/Sources/Core/ConfigurationParser.swift b/TunnelKit/Sources/Core/ConfigurationParser.swift index 24092e5..d055717 100644 --- a/TunnelKit/Sources/Core/ConfigurationParser.swift +++ b/TunnelKit/Sources/Core/ConfigurationParser.swift @@ -80,7 +80,7 @@ public class ConfigurationParser { static let remote = NSRegularExpression("^remote +[^ ]+( +\\d+)?( +(udp6?|tcp6?))?") - static let cipher = NSRegularExpression("^cipher +[\\w\\-]+") + static let cipher = NSRegularExpression("^cipher +[^,\\s]+") static let auth = NSRegularExpression("^auth +[\\w\\-]+")