summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
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)
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);