diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2015-01-12 11:02:38 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2015-01-12 11:02:38 +0000 |
commit | f9c28d373757224cbb87b86a551afd50f8f361d5 (patch) | |
tree | a649a76267c2798f2fc13c747efe21bc9f1a58a0 /cpan/IO-Socket-IP/lib | |
parent | b495b81bd2099f4fc3660f7ef257d6bdd4b1b90e (diff) | |
download | perl-f9c28d373757224cbb87b86a551afd50f8f361d5.tar.gz |
Update IO-Socket-IP to CPAN version 0.36
[DELTA]
0.36 2014/01/10 20:54:58
[BUGFIXES]
* Always bind() on MSWin32 because Windows doesn't like it if we
listen() having not done so (RT101396)
Diffstat (limited to 'cpan/IO-Socket-IP/lib')
-rw-r--r-- | cpan/IO-Socket-IP/lib/IO/Socket/IP.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpan/IO-Socket-IP/lib/IO/Socket/IP.pm b/cpan/IO-Socket-IP/lib/IO/Socket/IP.pm index 81417616fb..5435f4fbc7 100644 --- a/cpan/IO-Socket-IP/lib/IO/Socket/IP.pm +++ b/cpan/IO-Socket-IP/lib/IO/Socket/IP.pm @@ -7,7 +7,7 @@ package IO::Socket::IP; # $VERSION needs to be set before use base 'IO::Socket' # - https://rt.cpan.org/Ticket/Display.html?id=92107 BEGIN { - $VERSION = '0.35'; + $VERSION = '0.36'; } use strict; @@ -441,11 +441,17 @@ sub _io_socket_ip__configure ref $info eq "ARRAY" or croak "Expected 'LocalAddrInfo' to be an ARRAY ref"; @localinfos = @$info; } - elsif( defined $arg->{LocalHost} or defined $arg->{LocalService} ) { + elsif( defined $arg->{LocalHost} or + defined $arg->{LocalService} or + HAVE_MSWIN32 and $arg->{Listen} ) { # Either may be undef my $host = $arg->{LocalHost}; my $service = $arg->{LocalService}; + unless ( defined $host or defined $service ) { + $service = 0; + } + local $1; # Placate a taint-related bug; [perl #67962] defined $service and $service =~ s/\((\d+)\)$// and my $fallback_port = $1; |