This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fdc711
)
don't attempt connect() to bogus IP addresses
author
Graham Barr
<gbarr@pobox.com>
Sun, 31 Jan 1999 21:50:45 +0000
(15:50 -0600)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Mon, 1 Feb 1999 03:59:13 +0000
(
03:59
+0000)
Message-Id: <
19990131215045
.A633@pobox.com>
p4raw-id: //depot/perl@2743
t/lib/io_multihomed.t
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/io_multihomed.t
b/t/lib/io_multihomed.t
index
3d7188b
..
d9b96c0
100644
(file)
--- a/
t/lib/io_multihomed.t
+++ b/
t/lib/io_multihomed.t
@@
-55,8
+55,14
@@
sub connect
my($port, $addr) = unpack_sockaddr_in($_[0]);
$addr = inet_ntoa($addr);
#print "connect($self, $port, $addr)\n";
- print "ok 3\n" if $addr eq "10.250.230.10";
- print "ok 4\n" if $addr eq "10.250.230.12";
+ if($addr eq "10.250.230.10") {
+ print "ok 3\n";
+ return 0;
+ }
+ if($addr eq "10.250.230.12") {
+ print "ok 4\n";
+ return 0;
+ }
}
$self->SUPER::connect(@_);
}