diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-19 02:53:11 (GMT) |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-19 02:53:11 (GMT) |
commit | 7ccca5ed7fe7623277243def84b5e369032b7e22 (patch) | |
tree | 7ecea16e7a944f86753f257c420a335494b1c303 /plugins/check_http.c | |
parent | 9790212de9a787b5a7abc1b1ebda6723601f1fcd (diff) | |
download | monitoring-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 80b8367..5ec212a 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -154,8 +154,9 @@ main (int argc, char **argv) | |||
154 | } | 154 | } |
155 | 155 | ||
156 | if (display_html == TRUE) | 156 | if (display_html == TRUE) |
157 | printf ("<A HREF=\"http://%s:%d%s\" target=\"_blank\">", | 157 | printf ("<A HREF=\"%s%s:%d%s\" target=\"_blank\">", |
158 | host_name, server_port, server_url); | 158 | use_ssl ? "https://" : "http://", host_name, |
159 | server_port, server_url); | ||
159 | 160 | ||
160 | /* initialize alarm signal handling, set socket timeout, start timer */ | 161 | /* initialize alarm signal handling, set socket timeout, start timer */ |
161 | (void) signal (SIGALRM, socket_timeout_alarm_handler); | 162 | (void) signal (SIGALRM, socket_timeout_alarm_handler); |