cjdns.pac 464 B

123456789
  1. function FindProxyForURL(url, host) {
  2. // If we can't resolve this means that this host is IPv4 only. Trying cjdns won't hurt.
  3. // It also make IPv4 only hosts connect ot clearnet IPv6 hosts if proxy is IPv6 capable.
  4. // If we can resolve check if the host is insice cjdns network space.
  5. if (shExpMatch(host, "fc*:*") || !dnsResolve(host) || shExpMatch(dnsResolve(host), "fc*:*")) {
  6. return "SOCKS5 localhost:8080";
  7. }
  8. return "DIRECT";
  9. }