function FindProxyForURL(url, host) { // Tailscale domains to proxy var tailscaleDomains = [ "login.tailscale.com", "controlplane.tailscale.com", "log.tailscale.com", "log.tailscale.io" ]; // Check if the host matches any of the Tailscale domains for (var i = 0; i < tailscaleDomains.length; i++) { if (shExpMatch(host, tailscaleDomains[i])) { // Replace PROXY_IP and PROXY_PORT with your actual proxy server details return "PROXY 20.238.67.245:3128"; } } // For all other domains, connect directly return "DIRECT"; }