Browse Source

add comment about proxy side effect

283
ThomasV 10 years ago
parent
commit
92987d9019
  1. 1
      lib/interface.py

1
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):

Loading…
Cancel
Save