Package: libhttp-daemon-perl / 6.01-3

Metadata

Package Version Patches format
libhttp-daemon-perl 6.01-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Add IPv6 support.patch | (download)

Makefile.PL | 1 1 + 0 - 0 !
README | 24 12 + 12 - 0 !
lib/HTTP/Daemon.pm | 43 28 + 15 - 0 !
t/chunked.t | 34 23 + 11 - 0 !
4 files changed, 64 insertions(+), 38 deletions(-)

 add ipv6 support
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

This patch ports the code from IO::Socket::INET to IO::Socket::IP in
order to support IPv6.

CPAN RT #91699, #71395.

Signed-off-by: Petr Písař <ppisar@redhat.com>

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=91699

0002 Handle undef and empty LocalAddr.patch | (download)

lib/HTTP/Daemon.pm | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 handle undef and empty localaddr
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

IO::Socket::INET interprets undefined and empty string LocalAddr
arguments as an unspecified address while IO::Socket::IP returns an
0003 Resolve specific socket addresses correctly.patch | (download)

lib/HTTP/Daemon.pm | 15 13 + 2 - 0 !
1 file changed, 13 insertions(+), 2 deletions(-)

 resolve specific socket addresses correctly
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Previous code did not formatted specific (not 0.0.0.0 or ::)
correctly:

$ perl -MHTTP::Daemon -e '$d=HTTP::Daemon->new(LocalAddr=>q{127.0.0.2}) or die; print $d->url, qq{\n}'
Can't call method "sockhostname" without a package or object reference at /usr/share/perl5/vendor_perl/HTTP/Daemon.pm line 64.

This patch also fixes formatting numerical IPv6 addresses. It seems
that IO::Socket::IP::sockhostname() formats unresolvable addresses too.

Signed-off-by: Petr Písař <ppisar@redhat.com>

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=125242