mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-23 18:00:49 -05:00
another fix from alex: check for '/' in the server_address before
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
This commit is contained in:
parent
27675e4e6b
commit
3d210490d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue