Tor should use getsockname instead of getsockopt on TPROXY based transparent redirects
TPROXY sockets already contain the original information of the socket on getsockname and getsockopt SOL_IP, 0x50 is known to cause problems in some situations when using TPROXY.
Trac:
Username: klondike