aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 015ccd46..2a77637c 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -550,7 +550,7 @@ process_arguments (int argc, char **argv)
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;