Enable both HTTP and HTTPS proxies
This commit is contained in:
parent
4f8a669967
commit
b118030d43
|
@ -560,8 +560,11 @@ extension TunnelKitProvider: SessionProxyDelegate {
|
||||||
proxySettings = NEProxySettings()
|
proxySettings = NEProxySettings()
|
||||||
proxySettings?.httpsServer = httpsProxy.neProxy()
|
proxySettings?.httpsServer = httpsProxy.neProxy()
|
||||||
proxySettings?.httpsEnabled = true
|
proxySettings?.httpsEnabled = true
|
||||||
} else if let httpProxy = cfg.sessionConfiguration.httpProxy ?? reply.options.httpProxy {
|
}
|
||||||
proxySettings = NEProxySettings()
|
if let httpProxy = cfg.sessionConfiguration.httpProxy ?? reply.options.httpProxy {
|
||||||
|
if proxySettings == nil {
|
||||||
|
proxySettings = NEProxySettings()
|
||||||
|
}
|
||||||
proxySettings?.httpServer = httpProxy.neProxy()
|
proxySettings?.httpServer = httpProxy.neProxy()
|
||||||
proxySettings?.httpEnabled = true
|
proxySettings?.httpEnabled = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue