Ticket #3059 defect closed fixed
twisted.internet.tcp.Client.getPeer incorrectly returns hostnames
|Reported by:||exarkun||Owned by:|
(diff, github, buildbot, log)
If a hostname is passed to connectTCP, it will appear in the peer address. The IPv4Address should always have the IP address instead.
The IConnector returned by connectTCP seems to have the same problem with its getDestination method. This is a bit trickier, since the connector is available synchronously, whereas name resolution is asynchronous...