[or-cvs] r14027: Fix Bug 596: use 127.0.0.1 instead of 'localhost'. (torbutton/trunk/src/chrome/content)

mikeperry at seul.org mikeperry at seul.org
Fri Mar 14 08:28:49 UTC 2008


Author: mikeperry
Date: 2008-03-14 04:28:49 -0400 (Fri, 14 Mar 2008)
New Revision: 14027

Modified:
   torbutton/trunk/src/chrome/content/preferences.js
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Fix Bug 596: use 127.0.0.1 instead of 'localhost'.



Modified: torbutton/trunk/src/chrome/content/preferences.js
===================================================================
--- torbutton/trunk/src/chrome/content/preferences.js	2008-03-14 08:19:06 UTC (rev 14026)
+++ torbutton/trunk/src/chrome/content/preferences.js	2008-03-14 08:28:49 UTC (rev 14027)
@@ -23,7 +23,7 @@
     var proxy_port;
     var proxy_host;
     if (doc.getElementById('torbutton_usePrivoxy').checked) {
-        proxy_host = 'localhost';
+        proxy_host = '127.0.0.1';
         proxy_port = 8118;
     } else {
         proxy_host = '';
@@ -52,7 +52,7 @@
             doc.getElementById('torbutton_gopherProxy').value = '';
             doc.getElementById('torbutton_gopherPort').value = 0;
         }
-        doc.getElementById('torbutton_socksHost').value = 'localhost';
+        doc.getElementById('torbutton_socksHost').value = '127.0.0.1';
         doc.getElementById('torbutton_socksPort').value = 9050;
 
         doc.getElementById('torbutton_httpProxy').disabled = true;

Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-03-14 08:19:06 UTC (rev 14026)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-03-14 08:28:49 UTC (rev 14027)
@@ -292,7 +292,7 @@
 
     if (torprefs.getBoolPref('use_privoxy'))
     {
-        proxy_host = 'localhost';
+        proxy_host = '127.0.0.1';
         proxy_port = 8118;
     }
     else
@@ -324,7 +324,7 @@
             torprefs.setIntPref('ftp_port', proxy_port);
             torprefs.setIntPref('gopher_port', proxy_port);
         }
-        torprefs.setCharPref('socks_host', 'localhost');
+        torprefs.setCharPref('socks_host', '127.0.0.1');
         torprefs.setIntPref('socks_port', 9050);
     }
 



More information about the tor-commits mailing list