summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 27675e4)
raw | patch | inline | side by side (parent: 27675e4)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Sun, 30 Oct 2005 18:05:19 +0000 (18:05 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Sun, 30 Oct 2005 18:05:19 +0000 (18:05 +0000) |
trying to resolve it via is_host().
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1265 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1265 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 015ccd46672bbe782e72754d828f21b9c787682a..2a77637c93c626e2fb9795ebc99f46dd43da07b4 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
if (server_address == NULL)
usage4 (_("You must provide a server address"));
- else if (is_host (server_address) == FALSE && server_address[0] != '/')
+ else if (server_address[0] != '/' && is_host (server_address) == FALSE)
usage2 (_("Invalid hostname, address, or socket"), server_address);
return TRUE;