[tbb-commits] [torbutton/master] Get ftp working in domain isolator

mikeperry at torproject.org mikeperry at torproject.org
Wed Mar 25 17:53:18 UTC 2015


commit 0116a2ac9597a20a0e9bb8910e8a1f5e477d4c32
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Wed Mar 25 09:14:29 2015 -0700

    Get ftp working in domain isolator
---
 src/components/domain-isolator.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/domain-isolator.js b/src/components/domain-isolator.js
index a05fee2..93c7f65 100644
--- a/src/components/domain-isolator.js
+++ b/src/components/domain-isolator.js
@@ -97,7 +97,7 @@ tor.newCircuitForDomain = function(domain) {
 tor.isolateCircuitsByDomain = function () {
   mozilla.registerProxyChannelFilter(function (aChannel, aProxy) {
     try {
-      let channel = aChannel.QueryInterface(Ci.nsIHttpChannel),
+      let channel = aChannel.QueryInterface(Ci.nsIChannel),
           firstPartyURI = mozilla.thirdPartyUtil.getFirstPartyURIFromChannel(channel, true)
                             .QueryInterface(Ci.nsIURI),
           firstPartyDomain = mozilla.thirdPartyUtil
@@ -108,6 +108,7 @@ tor.isolateCircuitsByDomain = function () {
                       replacementProxy.username + ":" + replacementProxy.password); 
       return replacementProxy;
     } catch (err) {
+      logger.eclog(3, err.message);
       if (Date.now() - tor.unknownDirtySince > 1000*10*60) {
         logger.eclog(3, "tor catchall circuit has been dirty for over 10 minutes. Rotating.");
         tor.newCircuitForDomain("--unknown--");





More information about the tbb-commits mailing list