File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Revision history for HTTP-Daemon
22
33{{$NEXT}}
4- - Use GH Perl helpers for build and coverage jobs (GH#53) (Olaf Alders)
4+ - Test using loopback rather than internet accessible address (GH#52)
5+ (Michal Josef Špaček)
6+ - Use GH Perl helpers for build and coverage jobs (GH#53) (Olaf Alders)
57
686.13 2022-02-09 20:39:12Z
79 - Bump minimum IO::Socket::IP version to 0.32 (GH#50) (Olaf Alders)
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ my $tests = @TESTS;
102102my $tport = 8334;
103103
104104my %addresses = (
105- AF_INET6() => {server => ' ::' , client => ' ::1' },
106- AF_INET() => {server => ' 0 .0.0.0 ' , client => ' 127.0.0.1' }
105+ AF_INET6() => {server => ' ::1 ' , client => ' ::1' },
106+ AF_INET() => {server => ' 127 .0.0.1 ' , client => ' 127.0.0.1' }
107107);
108108my $family ;
109109my $tsock = IO::Socket::IP-> new(
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ if ($^O eq "MacOS") {
55 exit (0);
66}
77
8- unless (-f " CAN_TALK_TO_OURSELF" ) {
9- print " 1..0 # Skipped: Can't talk to ourself (misconfigured system)\n " ;
10- exit ;
11- }
12-
138$| = 1; # autoflush
149
1510require IO::Socket::IP; # make sure this work before we try to make a HTTP::Daemon
@@ -20,7 +15,7 @@ if ($D eq 'daemon') {
2015
2116 require HTTP::Daemon;
2217
23- my $d = HTTP::Daemon-> new(Timeout => 10);
18+ my $d = HTTP::Daemon-> new(Timeout => 10, LocalAddr => ' 127.0.0.1 ' );
2419
2520 print " Please to meet you at: <URL:" , $d -> url, " >\n " ;
2621 open (STDOUT , $^O eq ' VMS' ? " >nl: " : " >/dev/null" );
@@ -174,7 +169,7 @@ $res = $ua->request($req);
174169
175170ok($res->is_success);
176171ok($res->content_type, ' text/html' );
177- ok($res->content_length, 147 );
172+ ok($res->content_length, 155 );
178173ok($res->title, ' En pr�ve' );
179174ok($res->content, qr/� v�re/);
180175
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ if ($^O eq "MacOS") {
55 exit (0);
66}
77
8- unless (-f " CAN_TALK_TO_OURSELF" ) {
9- print " 1..0 # Skipped: Can't talk to ourself (misconfigured system)\n " ;
10- exit ;
11- }
12-
138$| = 1; # autoflush
149require IO::Socket::IP; # make sure this work before we try to make a HTTP::Daemon
1510
@@ -19,7 +14,7 @@ if ($D eq 'daemon') {
1914
2015 require HTTP::Daemon;
2116
22- my $d = HTTP::Daemon-> new(Timeout => 10);
17+ my $d = HTTP::Daemon-> new(Timeout => 10, LocalAddr => ' 127.0.0.1 ' );
2318
2419 print " Please to meet you at: <URL:" , $d -> url, " >\n " ;
2520 open (STDOUT ,
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ if ($^O eq "MacOS") {
55 exit (0);
66}
77
8- unless (-f " CAN_TALK_TO_OURSELF" ) {
9- print " 1..0 # Skipped: Can't talk to ourself (misconfigured system)\n " ;
10- exit ;
11- }
12-
138$| = 1; # autoflush
149require IO::Socket::IP; # make sure this work before we try to make a HTTP::Daemon
1510
@@ -19,7 +14,7 @@ if ($D eq 'daemon') {
1914
2015 require HTTP::Daemon;
2116
22- my $d = HTTP::Daemon-> new(Timeout => 10);
17+ my $d = HTTP::Daemon-> new(Timeout => 10, LocalAddr => ' 127.0.0.1 ' );
2318
2419 print " Please to meet you at: <URL:" , $d -> url, " >\n " ;
2520 open (STDOUT ,
You can’t perform that action at this time.
0 commit comments