<div class="gmail_quote">On Fri, Jan 20, 2012 at 9:02 PM, Itamar Turner-Trauring <span dir="ltr"><<a href="mailto:itamar@itamarst.org">itamar@itamarst.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/20/2012 02:23 PM, Facundo Batista wrote:<br>
> On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn<<a href="mailto:kevin.horn@gmail.com">kevin.horn@gmail.com</a>> wrote:<br>
><br>
>> twisted.internet.tcp.Connector has a getDestination() method, which should<br>
>> return an address object.<br>
>><br>
>> Have you tried that? (I haven't, but it looks like the right thing)<br>
> It returns the name used, not the IP.<br>
><br>
<br>
</div>That seems... wrong. Perhaps enshrined by prior existence, but wrong<br>
nonetheless - it's an IPv4Address, it should have an IP. Could you file<br>
a ticket?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote></div><br>Looking at the api docs for IPv4Address, the 'host' member is described as <br>"A string containing the dotted-quad IP address."<br>
<br>So if it's giving you the hostname, then this definitely looks like a bug.<br><br>Kevin Horn<br>