diff options
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 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); |