projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
normalise peerhost on outgoing connects
[spider.git]
/
perl
/
Msg.pm
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 52f0efd477aefbee6d622f0c708d92875b31eeca..352904102e32cf35d183ffcd1395e42f5c9c87a0 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-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},