summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9790212)
raw | patch | inline | side by side (parent: 9790212)
author | Matthew Kent <mattkent@users.sourceforge.net> | |
Fri, 19 Nov 2004 02:53:11 +0000 (02:53 +0000) | ||
committer | Matthew Kent <mattkent@users.sourceforge.net> | |
Fri, 19 Nov 2004 02:53:11 +0000 (02:53 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@907 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 80b83679af0f9a01e0fb53123c0c97e105820692..5ec212a29d69463207306bb3da934489707552c8 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
}
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);