Tor-mode changes in transport.py