Explorar el Código

Make -L notice ssl use to output a proper href (1035234, Abid Rasheed)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@907 f882894a-f735-0410-b71e-b25c423dba1c
Matthew Kent hace 21 años
padre
commit
7ccca5ed7f
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      plugins/check_http.c

+ 3 - 2
plugins/check_http.c

@@ -154,8 +154,9 @@ main (int argc, char **argv)
 	}
 	}
 
 
 	if (display_html == TRUE)
 	if (display_html == TRUE)
-		printf ("<A HREF=\"http://%s:%d%s\" target=\"_blank\">",
-		        host_name, server_port, server_url);
+		printf ("<A HREF=\"%s%s:%d%s\" target=\"_blank\">", 
+			use_ssl ? "https://" : "http://", host_name,
+			server_port, server_url);
 
 
 	/* initialize alarm signal handling, set socket timeout, start timer */
 	/* initialize alarm signal handling, set socket timeout, start timer */
 	(void) signal (SIGALRM, socket_timeout_alarm_handler);
 	(void) signal (SIGALRM, socket_timeout_alarm_handler);