Make connect rule interface explicit

Shouldn't make a difference but you never know with iOS.
This commit is contained in:
Davide De Rosa 2019-05-17 17:21:19 +02:00
parent a17a3f7e48
commit b1e2d60f37
1 changed files with 3 additions and 1 deletions

View File

@ -573,7 +573,9 @@ public class ConnectionService: Codable {
rule.ssidMatch = reallyTrustedWifis
rules.append(rule)
}
rules.append(NEOnDemandRuleConnect())
let connection = NEOnDemandRuleConnect()
connection.interfaceTypeMatch = .any
rules.append(connection)
return NetworkExtensionVPNConfiguration(protocolConfiguration: protocolConfiguration, onDemandRules: rules)
}