From 9e933d68c50e933e5d2af8987d0f13546ca896d5 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 27 Oct 2018 12:07:39 +0200 Subject: [PATCH] Improve unsupported options filter --- .../VPN/TunnelKitProvider+FileConfiguration.swift | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift b/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift index 8c34aace..75899eec 100644 --- a/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift +++ b/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift @@ -59,17 +59,20 @@ extension TunnelKitProvider.Configuration { static let renegSec = Utils.regex("^reneg-sec +\\d+") - static let fragment = Utils.regex("^fragment +\\d+") - - static let proxy = Utils.regex("^\\w+-proxy") - static let keyDirection = Utils.regex("^key-direction +\\d") - static let externalFiles = Utils.regex("^(ca|cert|key|tls-auth|tls-crypt) ") - static let blockBegin = Utils.regex("^<[\\w\\-]+>") static let blockEnd = Utils.regex("^<\\/[\\w\\-]+>") + + // unsupported + +// static let fragment = Utils.regex("^fragment +\\d+") + static let fragment = Utils.regex("^fragment") + + static let proxy = Utils.regex("^\\w+-proxy") + + static let externalFiles = Utils.regex("^(ca|cert|key|tls-auth|tls-crypt) ") } static func parsed(from url: URL, returnsStripped: Bool = false) throws -> ParsedFile {