Retain unhandled mtu/mssfix lines in stripped

This commit is contained in:
Davide De Rosa 2018-10-27 09:43:30 +02:00
parent c7639daf0d
commit 73e09fefb1
1 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,9 @@ extension TunnelKitProvider.Configuration {
Regex.externalFiles.enumerateArguments(in: line) { (_) in Regex.externalFiles.enumerateArguments(in: line) { (_) in
unsupportedError = ApplicationError.unsupportedConfiguration(option: "external file: \"\(line)\"") unsupportedError = ApplicationError.unsupportedConfiguration(option: "external file: \"\(line)\"")
} }
if line.contains("mtu") || line.contains("mssfix") {
isHandled = true
}
if let error = unsupportedError { if let error = unsupportedError {
throw error throw error