mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Bug 80363. Handle failure trying to get the machine's IP. This broke PAC on the mac because of bug 92516. r=pink, sr=darin, a=blizzard
This commit is contained in:
parent
8a386b3441
commit
1bc0fa3b1c
@ -108,7 +108,13 @@ nsProxyAutoConfig.prototype = {
|
||||
var mypac = pacUtils + pac;
|
||||
// evaluate loded js file
|
||||
evalInSandbox(mypac, ProxySandBox, pacURL);
|
||||
ProxySandBox.myIP = dns.myIPAddress;
|
||||
try {
|
||||
ProxySandBox.myIP = dns.myIPAddress;
|
||||
} catch (e) {
|
||||
// Well, theres nothing better.
|
||||
// see bugs 80363 and 92516.
|
||||
ProxySandBox.myIP = "127.0.0.1";
|
||||
}
|
||||
LocalFindProxyForURL=ProxySandBox.FindProxyForURL;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user