Comment 44 for bug 113201

Revision history for this message
In , Bugzilla-mozilla-org (bugzilla-mozilla-org) wrote :

Pretty straightforward as far as I can tell:

function FindProxyForURL(url, host)
{
        if(
                isInNet(host,"192.168.15.0","255.255.255.0") ||
                isInNet(host,"10.120.0.0","255.255.0.0") ||
                isInNet(host,"10.180.0.0","255.255.0.0")
        )
        {
                return "PROXY proxy:8080";
        }
        else
        {
                return "DIRECT";
        }
}

I have another one that basically reverses the DIRECT and PROXY return values.