From 2f96b82c9b67ca1aad6cd584a9c458d060bdd4bb Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 28 Nov 2025 10:52:39 +0100 Subject: check_ntp_time/check_ntp_peer: unix socket handling (#2187) * check_ntp_time/check_ntp_peer: unix socket handling * No tests for check_ntp since it is deprecated --- plugins/check_ntp_peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_ntp_peer.c') 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) { mp_thresholds_set_crit(result.config.truechimer_thresholds, tmp.range); } break; case 'H': - if (!is_host(optarg)) { + if (!is_host(optarg) && (optarg[0] != '/')) { usage2(_("Invalid hostname/address"), optarg); } result.config.server_address = strdup(optarg); -- cgit v1.2.3-74-g34f1