Comment 130 for bug 113201

Revision history for this message
In , Don-oles (don-oles) wrote :

function FindProxyForURL(url, host)
{
        if (dnsDomainIs(host, ".mydomain.com"))
            return "DIRECT";
        else
        if (isPlainHostName(host))
            return "DIRECT";
        else
        if (host == "localhost")
            return "DIRECT";
        else
        if (shExpMatch(host, "127.*"))
            return "DIRECT";
        else
        if (shExpMatch(host, "10.0.0.*") )
            return "DIRECT";
        else
            return "PROXY 10.0.0.1:3128";
}

This way no DNS queries are done during proxy resolution.