commit 92987d90193dc8c15f3e1b9455941681ed770099
parent 0947eb7960496eeb959a4af3fd3c9097a3e27e56
Author: ThomasV <thomasv@gitorious>
Date: Tue, 10 Mar 2015 09:43:22 +0100
add comment about proxy side effect
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -96,6 +96,7 @@ class TcpInterface(threading.Thread):
if self.proxy:
self.proxy_mode = proxy_modes.index(self.proxy["mode"]) + 1
socks.setdefaultproxy(self.proxy_mode, self.proxy["host"], int(self.proxy["port"]))
+ # fixme: side effect, client needs restart in order to get out of proxy mode
socket.socket = socks.socksocket
# prevent dns leaks, see http://stackoverflow.com/questions/13184205/dns-over-proxy
def getaddrinfo(*args):