aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorGravatar Matthew Kent <mattkent@users.sourceforge.net> 2004-11-19 02:53:11 +0000
committerGravatar Matthew Kent <mattkent@users.sourceforge.net> 2004-11-19 02:53:11 +0000
commit7ccca5ed7fe7623277243def84b5e369032b7e22 (patch)
tree7ecea16e7a944f86753f257c420a335494b1c303 /plugins/check_http.c
parent9790212de9a787b5a7abc1b1ebda6723601f1fcd (diff)
downloadmonitoring-plugins-7ccca5ed7fe7623277243def84b5e369032b7e22.tar.gz
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
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c5
1 files changed, 3 insertions, 2 deletions
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 ("<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 */
(void) signal (SIGALRM, socket_timeout_alarm_handler);