FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
Reply to topic    Frihost Forum Index -> Computers -> Software

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