summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78def17)
raw | patch | inline | side by side (parent: 78def17)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Sun, 6 Jan 2008 19:45:00 +0000 (19:45 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Sun, 6 Jan 2008 19:45:00 +0000 (19:45 +0000) |
Since this didn't work anyway (because ":80" wasn't stripped from the
"host_name" after extracting the "server_port"), nobody can be using
this syntax, and it prevents "-H" from accepting IPv6 addresses
(neufeind - 1865082). IMO, fixing it to recognize both ":80" and IPv6
addresses isn't worth it, as the ":80" syntax doesn't seem very useful
for Nagios plugins (given the way how they are usually called in Nagios
command definitions).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1891 f882894a-f735-0410-b71e-b25c423dba1c
"host_name" after extracting the "server_port"), nobody can be using
this syntax, and it prevents "-H" from accepting IPv6 addresses
(neufeind - 1865082). IMO, fixing it to recognize both ":80" and IPv6
addresses isn't worth it, as the ":80" syntax doesn't seem very useful
for Nagios plugins (given the way how they are usually called in Nagios
command definitions).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1891 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 bec02e1af5af67ce2a16d32604b3ba759cc27921..9fb7aea40d6a9d9735c5a53336dc07a846e0f1d0 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
/* Note: H, I, and u must be malloc'd or will fail on redirects */
case 'H': /* Host Name (virtual host) */
host_name = strdup (optarg);
- if (strstr (optarg, ":"))
- sscanf (optarg, "%*[^:]:%d", &server_port);
break;
case 'I': /* Server IP-address */
server_address = strdup (optarg);