proxy autoconfig
Tim
ignored_mailbox at yahoo.com.au
Wed Sep 19 02:25:30 UTC 2007
tony.chamberlain at lemko.com:
> function FindProxyForURL(url, host) {
>
> if (isInNet(host, "10.0.0.0", "10.255.255.255")) {
> return "PROXY 192.168.5.15:8001";
> }
>
> // All other requests are direct
> return "DIRECT";
> }
I think you're missing an "else" in the line before "// All".
Mine's like the following, although I'm doing the opposite of you
(bypassing the proxy for local IP addresses, and using the proxy for
anything I've not specifically listed).
--- begin below ---
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
dnsDomainIs(host, ".localdomain") ||
dnsDomainIs(host, ".google.com.au") ||
dnsDomainIs(host, ".hotmail.com") ||
dnsDomainIs(host, ".passport.com") ||
isInNet (host, "127.0.0.0", "255.255.255.0") ||
isInNet (host, "192.168.0.0", "255.255.0.0"))
return "DIRECT";
else
return "PROXY proxy.localdomain:3128; DIRECT";
}
--- finished above ---
Just for clarity's sake: "localdomain" is a local domain on my DNS
server, it's not a keyword with a special meaning.
--
[tim at bigblack ~]$ uname -ipr
2.6.22.4-65.fc7 i686 i386
Using FC 4, 5, 6 & 7, plus CentOS 5. Today, it's FC7.
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.
More information about the users
mailing list