summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0253f31..98005d0 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -330,6 +330,8 @@ process_arguments (int argc, char **argv)
330 /* Note: H, I, and u must be malloc'd or will fail on redirects */ 330 /* Note: H, I, and u must be malloc'd or will fail on redirects */
331 case 'H': /* Host Name (virtual host) */ 331 case 'H': /* Host Name (virtual host) */
332 host_name = strdup (optarg); 332 host_name = strdup (optarg);
333 if (strstr (optarg, ":"))
334 sscanf (optarg, "%*[^:]:%d", &server_port);
333 break; 335 break;
334 case 'I': /* Server IP-address */ 336 case 'I': /* Server IP-address */
335 server_address = strdup (optarg); 337 server_address = strdup (optarg);
@@ -1381,6 +1383,7 @@ certificate expiration times.\n"));
1381 printf (_("\ 1383 printf (_("\
1382 -H, --hostname=ADDRESS\n\ 1384 -H, --hostname=ADDRESS\n\
1383 Host name argument for servers using host headers (virtual host)\n\ 1385 Host name argument for servers using host headers (virtual host)\n\
1386 Append a port to include it in the header (eg: example.com:5000)\n\
1384 -I, --IP-address=ADDRESS\n\ 1387 -I, --IP-address=ADDRESS\n\
1385 IP address or name (use numeric address if possible to bypass DNS lookup).\n\ 1388 IP address or name (use numeric address if possible to bypass DNS lookup).\n\
1386 -p, --port=INTEGER\n\ 1389 -p, --port=INTEGER\n\