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...
Change History (16)
comment:8 Changed 6 years ago by exarkun
- Branch changed from branches/getpeer-hostname-3059 to branches/getpeer-hostname-3059-2