[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbutton/master] Get ftp working in domain isolator
commit 0116a2ac9597a20a0e9bb8910e8a1f5e477d4c32
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
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--");
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits