Skip to content

Commit

Permalink
fast_ping: suppress log.
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Jul 13, 2024
1 parent dd14a86 commit 958ed1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fast_ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 958ed1f

Please sign in to comment.