Hello
I am working with chromium for ios, how could I add a proxy to use it when browsing, modify the method of the net/proxy_resolution/proxy_config_service_ios.cc file
void GetCurrentProxyConfig(const NetworkTrafficAnnotationTag traffic_annotation,
ProxyConfigWithAnnotation* config) {
ProxyConfig proxy_config;
ProxyChain proxy_chain = ProxyStorageToProxyChain("proxy_ip", 3128);
if (proxy_chain.IsValid()) {
LOG(INFO) << " GetCurrentProxyConfig ";
proxy_config.proxy_rules().type =
ProxyConfig::ProxyRules::Type::PROXY_LIST_PER_SCHEME;
proxy_config.proxy_rules().proxies_for_http.SetSingleProxyChain(
proxy_chain);
// Desktop Safari applies the HTTP proxy to http:// URLs only, but
// Mobile Safari applies the HTTP proxy to https:// URLs as well.
proxy_config.proxy_rules().proxies_for_https.SetSingleProxyChain(
proxy_chain);
}
// Proxy bypass list is not supported.
// The kCFNetworkProxiesExceptionsList key is not available on iOS.
// Proxy bypass boolean is not supported.
// The kCFNetworkProxiesExcludeSimpleHostnames key is not available on iOS.
// Source
proxy_config.set_from_system(true);
// proxy_config.set_auto_detect(true);
*config = ProxyConfigWithAnnotation(proxy_config, traffic_annotation);
}
and checking the proxy logs you can see the requests made with the browser, but when visiting the pages that show you what your IP is (
https://whatismyipaddress.com/) the proxy IP does not appear, it shows me my IP provided by the internet provider, this does not happen when I configure directly in the system proxy