diff options
-rw-r--r-- | plugins/check_pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index cf526a6e..c20c9914 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -321,7 +321,7 @@ process_arguments (int argc, char **argv) | |||
321 | query_warning = optarg; | 321 | query_warning = optarg; |
322 | break; | 322 | break; |
323 | case 'H': /* host */ | 323 | case 'H': /* host */ |
324 | if (!is_host (optarg)) | 324 | if ((*optarg != '/') && (!is_host (optarg))) |
325 | usage2 (_("Invalid hostname/address"), optarg); | 325 | usage2 (_("Invalid hostname/address"), optarg); |
326 | else | 326 | else |
327 | pghost = optarg; | 327 | pghost = optarg; |