aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_pgsql.c2
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)
query_warning = optarg;
break;
case 'H': /* host */
- if (!is_host (optarg))
+ if ((*optarg != '/') && (!is_host (optarg)))
usage2 (_("Invalid hostname/address"), optarg);
else
pghost = optarg;