firefox wpad.dat report incorrect myIpAddress()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox
I have a wpad.dat that tries to detect the network based on the myAddress() javascript API specified by wpad standards. It works in windows firefox (and even in IE!). It does not do so in Ubuntu.
The problem is that /etc/hosts lists mymachine.
I am connected over eth0 and the address is configured correctly. I can access local websites (the internet if I manually configure the proxy)
Test wpad.dat:
function FindProxyForURL
{
alert(
// Direct access
if (
isPlainHostName
{
alert(host + ":DIRECT");
return "DIRECT";
}
// Are we inside the jail?????
if (isInNet(
alert(host + ":PRIN");
return "PROXY thebadproxy.
}
// we are in the free world!
alert(host + ":FREE");
return "DIRECT";
}
I understand that the /etc/hosts entry is needed (if network is down etc).
Firefox must pick the address from the interface used in the default route and not by trying to look up mymachine.
Hope to see this pushed upstream and eventually fixed. There several reports from people not able to access the internet by using automatic proxy configuration. It is because of this.
tags: | added: patch |
Affects automatic proxies and any call myIpAddress()