On Fri, Jan 20, 2012 at 9:02 PM, Itamar Turner-Trauring <ita...@itamarst.org > wrote:
> On 01/20/2012 02:23 PM, Facundo Batista wrote: > > On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn<kevin.h...@gmail.com> > wrote: > > > >> twisted.internet.tcp.Connector has a getDestination() method, which > should > >> return an address object. > >> > >> Have you tried that? (I haven't, but it looks like the right thing) > > It returns the name used, not the IP. > > > > That seems... wrong. Perhaps enshrined by prior existence, but wrong > nonetheless - it's an IPv4Address, it should have an IP. Could you file > a ticket? > > Looking at the api docs for IPv4Address, the 'host' member is described as "A string containing the dotted-quad IP address." So if it's giving you the hostname, then this definitely looks like a bug. Kevin Horn
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python