diff options
Diffstat (limited to 'plugins/check_ntp_peer.c')
| -rw-r--r-- | plugins/check_ntp_peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index f7cad630..26f74286 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -625,7 +625,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) { | |||
| 625 | mp_thresholds_set_crit(result.config.truechimer_thresholds, tmp.range); | 625 | mp_thresholds_set_crit(result.config.truechimer_thresholds, tmp.range); |
| 626 | } break; | 626 | } break; |
| 627 | case 'H': | 627 | case 'H': |
| 628 | if (!is_host(optarg)) { | 628 | if (!is_host(optarg) && (optarg[0] != '/')) { |
| 629 | usage2(_("Invalid hostname/address"), optarg); | 629 | usage2(_("Invalid hostname/address"), optarg); |
| 630 | } | 630 | } |
| 631 | result.config.server_address = strdup(optarg); | 631 | result.config.server_address = strdup(optarg); |
