tfix proxy index - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ea7dabe640a836924dcbc7dd7099952bab26e3ba DIR parent 5874457df2f4dda2ac460323397c3397dc9a923a HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 28 Oct 2012 21:59:51 +0100 fix proxy index Diffstat: M lib/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -187,7 +187,7 @@ class Interface(threading.Thread): if self.proxy: import socks - socks.setdefaultproxy(proxy_modes.index(self.proxy["mode"]), self.proxy["host"], int(self.proxy["port"]) ) + socks.setdefaultproxy(proxy_modes.index(self.proxy["mode"]) + 1, self.proxy["host"], int(self.proxy["port"]) ) socks.wrapmodule(urllib2) cj = cookielib.CookieJar() t@@ -256,7 +256,7 @@ class Interface(threading.Thread): self.connection_msg += " using proxy %s:%s:%s"%(self.proxy.get('mode'), self.proxy.get('host'), self.proxy.get('port')) import socks s = socks.socksocket() - s.setproxy(proxy_modes.index(self.proxy["mode"]), self.proxy["host"], int(self.proxy["port"]) ) + s.setproxy(proxy_modes.index(self.proxy["mode"]) + 1, self.proxy["host"], int(self.proxy["port"]) ) if self.use_ssl: s = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_SSLv23)