Proxy Hamnet

proxy.pac
// Hamnet Proxy Autoconfiguration File
 
function FindProxyForURL(url, host) {
    var outbound_proxy = "SOCKS5 proxy.f4hof.ampr.org:1080";
 
    // These resources are not reachable on the European network 
    if (shExpMatch(host, "portal.ampr.org")) return outbound_proxy;
    if (shExpMatch(host, "wiki.ampr.org")) return outbound_proxy;
    if (isInNet(host, "44.0.0.1", "255.255.255.255")) return outbound_proxy;
    if (isInNet(host, "44.1.1.0", "255.255.255.0"  )) return outbound_proxy;
 
    // Skip proxy for Hamnet resources
    if (isInNet(host, "44.0.0.0", "255.128.0.0")) return "DIRECT";
    if (isInNet(host, "44.128.0.0", "255.192.0.0")) return "DIRECT";
    if (shExpMatch(host, "*.ampr.org")) return "DIRECT";
 
    // All other requests are directed to the Internet
    return outbound_proxy;
}