Код: Выделить всё
configuration.connectionProxyDictionary = [
kCFNetworkProxiesHTTPEnable as String: 1,
kCFNetworkProxiesHTTPProxy as String: ip,
kCFNetworkProxiesHTTPPort as String: port,
"HTTPSEnable": 1,
"HTTPSProxy": ip,
"HTTPSPort": port,
]
Я сейчас создаю свое соединение как:
Код: Выделить всё
NWConnection(host: host, port: port, using: .init())
Подробнее здесь: https://stackoverflow.com/questions/745 ... rk-library