Proxy not working over SSL connection
问题 I'm trying to use tor, socksipy and ssl to proxy a ssl connection. My client looks like this: import socks, ssl s = socks.socksocket() s.setproxy(socks.PROXY_TYPE_SOCKS5,"127.0.0.1", 9050) ssl_sock = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1) ssl_sock.connect(('127.0.0.1', 443)) The server just accepts connections and prints getpeername . The peer name is always 127.0.0.1. It doesn't even matter if I give it a non-valid proxy. The client won't complain, it will connect anyway. How do