Default to server settings for default gateway
IPv6 is not necessarily supported.
This commit is contained in:
parent
547746e0d9
commit
accd04eead
|
@ -357,7 +357,7 @@ public class ConnectionService: Codable {
|
|||
// fall back to the safer option
|
||||
var builder = host.parameters.builder()
|
||||
var sessionBuilder = builder.sessionConfiguration.builder()
|
||||
sessionBuilder.routingPolicies = [.IPv4, .IPv6]
|
||||
sessionBuilder.routingPolicies = [.IPv4]
|
||||
builder.sessionConfiguration = sessionBuilder.build()
|
||||
host.parameters = builder.build()
|
||||
}
|
||||
|
|
|
@ -186,8 +186,8 @@ public struct InfrastructurePreset: Codable {
|
|||
sessionBuilder.randomizeEndpoint = try cfgContainer.decodeIfPresent(Bool.self, forKey: .randomizeEndpoint) ?? false
|
||||
sessionBuilder.usesPIAPatches = try cfgContainer.decodeIfPresent(Bool.self, forKey: .usesPIAPatches) ?? false
|
||||
|
||||
// XXX: redirect everything through the VPN for providers
|
||||
sessionBuilder.routingPolicies = [.IPv4, .IPv6]
|
||||
// default to server settings
|
||||
sessionBuilder.routingPolicies = nil
|
||||
|
||||
let builder = TunnelKitProvider.ConfigurationBuilder(sessionConfiguration: sessionBuilder.build())
|
||||
configuration = builder.build()
|
||||
|
|
Loading…
Reference in New Issue