FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Automatic proxy detection with myIpAddress() fails

 


JayBee
I want to use proxy.pac file to autoconfigure Firefox in Linux, but it doesn't work because the return value of the function myIpAddress() is always 127.0.0.1
my proxy.pac looks like
Code:
function FindProxyForURL(url, host)
{
    if ( isPlainHostName(host) ||
         isInNet(myIpAddress(), "192.168.0.0", "255.255.0.0") ||
         isInNet(myIpAddress(), "169.254.0.0", "255.255.0.0") ||
         isInNet(host, "127.0.0.0", "255.255.0.0") ||
         shExpMatch(url, "ftp:*")
       )
    {
        return "DIRECT";
    } else {
        return "PROXY some.proxy.com:3128;";
    }
}


I have Firefox 1.5.0.3 and Gentoo Linux
do you know how to select other network adapter (eth0 insted of lo)?
JayBee
nobody can help me Sad
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.