Closed Bug 640202 Opened 15 years ago Closed 15 years ago

support for multiple host ip addresses missing for proxy auto config (pac)

Categories

(Firefox :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 558253

People

(Reporter: niki.waibel, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4us; en-US; rv:1.9.2.15) Gecko/20110304 Firefox/3.6.15 Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4us; en-US; rv:1.9.2.15) Gecko/20110304 Firefox/3.6.15 other browsers support multiple host ip addresses via myIpAddressEx() in FindProxyforURLEx(url,host) in proxy.pac (aka wpad.pac/wpad.dat) files. firefox (up to 4.0b12) seems to have no way to detect all host ip addresses. with IPv6 this is getting more of an issue with firefox -- as i can't find a way to select proxies depending on local ip-addresses. myIpAddress() returns the first ip it finds -- which may be ::1, 127.0.0.1, or something better. in ancient times, it may have helped to turn off ipv6 via network.dns.disableIPv6 -- but i think we all agree that this can't be a solution anymore. Reproducible: Always Steps to Reproduce: within an proxy-auto-config (pac) script, you may write === FindProxyforURLEx(url,host) { alert("FindProxyforURLEx(): " + myIpAddress()); } FindProxyforURL(url,host) { alert("FindProxyforURL(): " + myIpAddress()); } === to figure out what is reported (in the error console). Actual Results: depending (in UNIX) on /etc/hosts and/or /etc/nsswitch.conf and/or OS kernel/ipStack configuration, unusable things may be reported: === ::1 127.0.0.1 === in some cases, even if a proper IPv4 address is configured. Expected Results: well -- i'd like to have a function that reports all ip-addresses on the host. in other browsers this is implemented via FindProxyforURLEx(url,host) myIpAddressEx()
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.