From 958ed1f51b560462188b46e379d20cf0d8b9598b Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 13 Jul 2024 16:52:43 +0800 Subject: [PATCH] fast_ping: suppress log. --- src/fast_ping.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fast_ping.c b/src/fast_ping.c index c103f0f827..e9429384bf 100644 --- a/src/fast_ping.c +++ b/src/fast_ping.c @@ -738,6 +738,10 @@ static int _fast_ping_sendping_v6(struct ping_host_struct *ping_host) goto errout; } + if (is_private_addr_sockaddr(&ping_host->addr, ping_host->addr_len)) { + goto errout; + } + if (errno == EACCES || errno == EPERM) { if (bool_print_log == 0) { goto errout;