OSDN Git Service

ticket #412 問題対応
authormeguro <meguro@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Mon, 28 Dec 2009 05:29:32 +0000 (05:29 +0000)
committermeguro <meguro@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Mon, 28 Dec 2009 05:29:32 +0000 (05:29 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel@9465 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7directord/l7directord

index 8642760..abb19b9 100644 (file)
@@ -2381,7 +2381,11 @@ sub check_http {
     else{
         ## ipv6 Check
         ## Wget Comand Check
-        my $command = "/usr/bin/wget " . "-t 1 --timeout $v->{negotiatetimeout} ".  $r->{url} . ' > /dev/null 2>&1';
+        my $https_option = '';
+        if ( $v->{service} eq 'https'){
+            $https_option = '--no-check-certificate';
+        }
+        my $command = "/usr/bin/wget " . "-t 1 --timeout $v->{negotiatetimeout} $https_option ".  $r->{url} . ' > /dev/null 2>&1';
         if( system_wrapper( $command )) {
             ld_log( _message( 'WRN1103', 'web', $r->{server}{ip}, $port ) ) if (!defined $status || $status eq $SERVICE_UP);
             return $SERVICE_DOWN;