]> git.proxmox.com Git - libhttp-daemon-perl.git/commitdiff
Imported Upstream version 6.01
authorAlessandro Ghedini <al3xbio@gmail.com>
Sun, 19 Feb 2012 18:19:24 +0000 (19:19 +0100)
committerAlessandro Ghedini <al3xbio@gmail.com>
Sun, 19 Feb 2012 18:19:24 +0000 (19:19 +0100)
Changes
META.yml
Makefile.PL
lib/HTTP/Daemon.pm

diff --git a/Changes b/Changes
index a855a2ea6d0e4cda2254c47b6baf9ff97548ebdc..bac19b208b29c54988b9e09d751bc86fdfa5d406 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,14 @@
+_______________________________________________________________________________
+2012-02-18 HTTP-Daemon 6.01
+
+If you bind localhost, don't trust gethostbyaddr() to resolve the
+address.  [RT#67247]
+
+Restore perl-5.8.1 compatiblity.
+
+
+
+
 _______________________________________________________________________________
 2011-02-25 HTTP-Daemon 6.00
 
index 9dd817bfef108909c685d3163d43a38a58df8a80..8f2eaf14c95d5e59a33ce9e48df10440e8908f42 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               HTTP-Daemon
-version:            6.00
+version:            6.01
 abstract:           a simple http server class
 author:
     - Gisle Aas <gisle@activestate.com>
@@ -17,16 +17,16 @@ requires:
     HTTP::Status:     6
     IO::Socket:       0
     LWP::MediaTypes:  6
-    perl:             5.008008
+    perl:             5.008001
     Sys::Hostname:    0
 resources:
     MailingList:  mailto:libwww@perl.org
-    repository:   http://github.com/gisle/libwww-perl
+    repository:   http://github.com/gisle/http-daemon
 no_index:
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.56
+generated_by:       ExtUtils::MakeMaker version 6.57_05
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4
index fe981ccd67cabb7b1f259f38a3cbbea35fdd970f..09c7e869b372df68db194c486a4a3cfdc2305371 100644 (file)
@@ -1,6 +1,6 @@
 #!perl -w
 
-require 5.008008;
+require 5.008001;
 use strict;
 use ExtUtils::MakeMaker;
 
@@ -10,7 +10,7 @@ WriteMakefile(
     ABSTRACT_FROM => 'lib/HTTP/Daemon.pm',
     AUTHOR => 'Gisle Aas <gisle@activestate.com>',
     LICENSE => "perl",
-    MIN_PERL_VERSION => 5.008008,
+    MIN_PERL_VERSION => 5.008001,
     PREREQ_PM => {
        'Sys::Hostname' => 0,
        'IO::Socket' => 0,
@@ -22,7 +22,7 @@ WriteMakefile(
     },
     META_MERGE => {
        resources => {
-            repository => 'http://github.com/gisle/libwww-perl',
+            repository => 'http://github.com/gisle/http-daemon',
            MailingList => 'mailto:libwww@perl.org',
         }
     },
index 6988bd47f58a601f00f002b22cd5caa6d87d22ae..27a7bf4e1733ca752ba97a2e59a2a37fe327e842 100644 (file)
@@ -3,9 +3,9 @@ package HTTP::Daemon;
 use strict;
 use vars qw($VERSION @ISA $PROTO $DEBUG);
 
-$VERSION = "6.00";
+$VERSION = "6.01";
 
-use IO::Socket qw(AF_INET INADDR_ANY inet_ntoa);
+use IO::Socket qw(AF_INET INADDR_ANY INADDR_LOOPBACK inet_ntoa);
 @ISA=qw(IO::Socket::INET);
 
 $PROTO = "HTTP/1.1";
@@ -44,6 +44,9 @@ sub url
        require Sys::Hostname;
        $url .= lc Sys::Hostname::hostname();
     }
+    elsif ($addr eq INADDR_LOOPBACK) {
+       $url .= inet_ntoa($addr);
+    }
     else {
        $url .= gethostbyaddr($addr, AF_INET) || inet_ntoa($addr);
     }