Disable disabling by reverse lookup on non-Mac/Windows/Linux
If this is the case, it's probably a BSD derivative, but I can't guarantee the code won't segfault.
This commit is contained in:
parent
f856df5222
commit
2c5bfd5d5a
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,8 @@ Zotero.Proxies = new function() {
|
|||
if (Zotero.Proxies.disabledByDomain) return;
|
||||
}
|
||||
_maybeRedirect(channel, notificationCallbacks, proxied);
|
||||
}, function(e) {
|
||||
_maybeRedirect(channel, notificationCallbacks, proxied);
|
||||
});
|
||||
Zotero.Proxies.lastIPCheck = now;
|
||||
return;
|
||||
|
@ -922,6 +924,7 @@ Zotero.Proxies.DNS = new function() {
|
|||
var _callbacks = [];
|
||||
|
||||
this.getHostnames = function() {
|
||||
if (!Zotero.isWin && !Zotero.isMac && !Zotero.isLinux) return Q([]);
|
||||
var deferred = Q.defer();
|
||||
var worker = new ChromeWorker("chrome://zotero/content/xpcom/dns_worker.js");
|
||||
Zotero.debug("Proxies.DNS: Performing reverse lookup");
|
||||
|
|
Loading…
Add table
Reference in a new issue