Parse PAC from provider configuration

Not propagated to AppExtension.
This commit is contained in:
Davide De Rosa 2019-10-23 12:59:10 +02:00
parent dcac7cb2d4
commit e5a7a09b7f
1 changed files with 3 additions and 0 deletions

View File

@ -534,6 +534,9 @@ private extension OpenVPN.Configuration {
} }
builder.httpsProxy = proxy builder.httpsProxy = proxy
} }
if let proxyAutoConfigurationURLString = providerConfiguration[S.proxyAutoConfigurationURL] as? String, let proxyAutoConfigurationURL = URL(string: proxyAutoConfigurationURLString) {
builder.proxyAutoConfigurationURL = proxyAutoConfigurationURL
}
if let proxyBypassDomains = providerConfiguration[S.proxyBypassDomains] as? [String] { if let proxyBypassDomains = providerConfiguration[S.proxyBypassDomains] as? [String] {
builder.proxyBypassDomains = proxyBypassDomains builder.proxyBypassDomains = proxyBypassDomains
} }