Code

Make -L notice ssl use to output a proper href (1035234, Abid Rasheed)
authorMatthew Kent <mattkent@users.sourceforge.net>
Fri, 19 Nov 2004 02:53:11 +0000 (02:53 +0000)
committerMatthew 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

index 80b83679af0f9a01e0fb53123c0c97e105820692..5ec212a29d69463207306bb3da934489707552c8 100644 (file)
@@ -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);