========================================================= function FindProxyForURL(url, host) { // No proxy for private (RFC 1918) IP addresses (intranet sites) if ( isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ) { return "DIRECT"; }
// No proxy for localhost if (isInNet(dnsResolve(host), "127.0.0.0", "255.0.0.0")) { return "DIRECT"; }
// Proxy all return "HTTPS 3ele0ss56t.proxy.cloudflare-gateway.com:443"; } =========================================================
but once added in a worker, I can't deploy it, I've got the following error : No event handlers were registered. This script does nothing. ==> I customized my proxy endpoint of course