]> git.etc.gen.nz Git - spong.git/commitdiff
bugfix: $HTTPPORT{ALL} is not used
authorJan Willamowius <jan@willamowius.de>
Tue, 20 Sep 2005 14:34:32 +0000 (14:34 +0000)
committerJan Willamowius <jan@willamowius.de>
Tue, 20 Sep 2005 14:34:32 +0000 (14:34 +0000)
src/lib/Spong/Network/plugins/check_http

index b6e4a728559e82363dc3e1c2bc1541e7aced3e30..c7d9195845ded79733ffa01d24ab5dce667c481c 100755 (executable)
@@ -33,7 +33,7 @@ sub check_http {
          $method =~ s/\s$//;   # remove trailing spaces
          my($hpart,$urlpath) = ( $url =~ m|^([^/]+)(/.*)| );
          my($hname,$port) = split(/:/,$hpart);
-         $port = 80 if ! $port;
+         $port = $http_port if ! $port;
          #$hname = $host if ( ! $hname || $hname eq '_HOST_' );
          if ( ! $hname ) {
             $hname = $host;