[tor-commits] [torbutton/master] Bug 4161: This time, I really mean it.

mikeperry at torproject.org mikeperry at torproject.org
Sun Oct 2 03:42:07 UTC 2011


commit 5aa7d8f6e79a596b145e7c34f1a51500a445475c
Author: Mike Perry <mikeperry-git at fscked.org>
Date:   Sat Oct 1 20:38:04 2011 -0700

    Bug 4161: This time, I really mean it.
    
    It's really, really fixed and nothing can possibly ever go wrong again.
---
 src/chrome/content/torbutton.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 3150516..decc37c 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -3869,21 +3869,21 @@ function torbutton_do_startup()
                    .getService(Components.interfaces.nsIEnvironment);
 
         if (environ.exists("TOR_SOCKS_PORT")) {
-          torprefs.setIntPref('socks_port', parseInt(environ.get("TOR_SOCKS_PORT")));
+          m_tb_prefs.setIntPref('extensions.torbutton.socks_port', parseInt(environ.get("TOR_SOCKS_PORT")));
           if (m_tb_tbb) {
               m_tb_prefs.setIntPref('network.proxy.socks_port', parseInt(environ.get("TOR_SOCKS_PORT")));
           }
         } else {
-          torprefs.setIntPref('socks_port', 9050);
+          m_tb_prefs.setIntPref('extensions.torbutton.socks_port', 9050);
         }
 
         if (environ.exists("TOR_SOCKS_HOST")) {
-          torprefs.setCharPref('socks_host', environ.get("TOR_SOCKS_HOST"));
+          m_tb_prefs.setCharPref('extensions.torbutton.socks_host', environ.get("TOR_SOCKS_HOST"));
           if (m_tb_tbb) {
-              m_tb_prefs.setIntPref('network.proxy.socks', parseInt(environ.get("TOR_SOCKS_HOST")));
+              m_tb_prefs.setCharPref('network.proxy.socks', environ.get("TOR_SOCKS_HOST"));
           }
         } else {
-          torprefs.setCharPref('socks_host', '127.0.0.1');
+          m_tb_prefs.setCharPref('extensions.torbutton.socks_host', '127.0.0.1');
         }
 
         m_tb_prefs.setBoolPref("extensions.torbutton.startup", false);





More information about the tor-commits mailing list