Skip to content

Commit 6de4067

Browse files
committed
Do not check proxy settings via check.torproject.org url if getProxySettings object key 'tor_safe' is false
1 parent 5183dd9 commit 6de4067

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/ssl-observatory.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,12 @@ SSLObservatory.prototype = {
772772
*/
773773
this.proxy_test_successful = null;
774774

775+
if (this.getProxySettings().tor_safe == false) {
776+
this.proxy_test_successful = false;
777+
this.log(INFO, "Tor check failed: Not safe to check.");
778+
return;
779+
}
780+
775781
try {
776782
var req = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
777783
.createInstance(Components.interfaces.nsIXMLHttpRequest);

0 commit comments

Comments
 (0)