London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
3.1 C
New York
Friday, January 31, 2025

ios – How you can set proxy credentials with NEPacketTunnelProvider and NEProxySettings?


In an iOS app (react native) I’m making a pretend vpn reference to NEPacketTunnelProvider and configuring a proxy. auth is required for the proxy I’m utilizing.

override func startTunnel(choices: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) {
    
    let settings = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: "10.0.0.1")
    let proxySettings = NEProxySettings()

    proxySettings.autoProxyConfigurationEnabled = true
    proxySettings.httpEnabled = true
    proxySettings.httpsEnabled = true
    proxySettings.excludeSimpleHostnames = false 
    proxySettings.matchDomains = [""]
    proxySettings.exceptionList = ["192.168.0.0/16".....]
    
    let httpServer = NEProxyServer(deal with: HOST_IP1, port: PORT1)
    let httpsServer = NEProxyServer(deal with: HOST_IP2, port: PORT2)
   
    httpServer.username = "xxx"
    httpServer.password = "yyy"
    
    httpsServer.username = "xxx"
    httpsServer.password = "yyy"
    httpServer.authenticationRequired = true
    httpsServer.authenticationRequired = true
  
    proxySettings.httpServer = httpServer
    proxySettings.httpsServer = httpsServer
    
    settings.proxySettings = proxySettings
    settings.mtu = 1400
    
     setTunnelNetworkSettings(settings) { error in
      ....
     }
    }

I believe I’ve finished all of the settings. nevertheless it tells me auth required (http) when logging in to websites or typically instantly after connecting, typically with an alert. on some websites I get invalid auth credentials.
I do not need to have to make use of pac.

I needn’t make these settings in let tunnelProtocol = NETunnelProviderProtocol(), proper?

Thanks for the explanatory solutions, I have to clear up this drawback.

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com