normalise peerhost on outgoing connects
[spider.git] / perl / Msg.pm
index 52f0efd477aefbee6d622f0c708d92875b31eeca..352904102e32cf35d183ffcd1395e42f5c9c87a0 100644 (file)
@@ -141,7 +141,7 @@ sub connect {
 
                connect => [$to_host, $to_port],
 
-#              on_connect => sub {my $h = shift; $conn->{peerhost} = $h->handle->peername;},
+               on_connect => sub {my $h = shift; $conn->{peerhost} = shift;},
 
                on_eof => sub {$conn->disconnect},