From 7ccca5ed7fe7623277243def84b5e369032b7e22 Mon Sep 17 00:00:00 2001 From: Matthew Kent Date: Fri, 19 Nov 2004 02:53:11 +0000 Subject: 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 --- plugins/check_http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/check_http.c b/plugins/check_http.c index 80b83679..5ec212a2 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -154,8 +154,9 @@ main (int argc, char **argv) } if (display_html == TRUE) - printf ("", - host_name, server_port, server_url); + printf ("", + use_ssl ? "https://" : "http://", host_name, + server_port, server_url); /* initialize alarm signal handling, set socket timeout, start timer */ (void) signal (SIGALRM, socket_timeout_alarm_handler); -- cgit v1.2.3