Skip bypass domains for proxy configured with PAC

This commit is contained in:
Davide De Rosa 2022-04-13 19:45:27 +02:00
parent 5874ce4b9d
commit ad38ca5942
2 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ extension NetworkSettingsView {
}
}
}
if !settings.isAutomaticProxy && settings.proxy.configurationType != .disabled {
if !settings.isAutomaticProxy && settings.proxy.configurationType == .manual {
proxyManualBypassDomains
}
}

View File

@ -122,10 +122,10 @@ extension Network {
public var proxyPort: UInt16?
public var proxyAutoConfigurationURL: URL?
public var proxyBypassDomains: [String] = []
public var proxyAutoConfigurationURL: URL?
public var proxyServer: Proxy? {
guard let address = proxyAddress, let port = proxyPort, !address.isEmpty, port > 0 else {
return nil