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:
bbaetz%cs.mcgill.ca 2001-07-27 21:34:41 +00:00
parent 8a386b3441
commit 1bc0fa3b1c

View File

@ -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;
},