From 2c5bfd5d5a61f7ffac30e447ace38bccbc9fb296 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 13 Jul 2015 19:28:02 -0400 Subject: [PATCH] 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. --- chrome/content/zotero/xpcom/proxy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/proxy.js b/chrome/content/zotero/xpcom/proxy.js index f2fa2e122..ab74dc606 100644 --- a/chrome/content/zotero/xpcom/proxy.js +++ b/chrome/content/zotero/xpcom/proxy.js @@ -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");