From eb9fb64ec5d4fca179917badc82205f3cb291d76 Mon Sep 17 00:00:00 2001 From: Xu Wang <59418106+xwang1498@users.noreply.github.com> Date: Fri, 27 Sep 2024 08:16:19 -0400 Subject: [PATCH] Handle "No route to host" message on macOS --- prettyping | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prettyping b/prettyping index 7b4db8c..0ffe3c5 100755 --- a/prettyping +++ b/prettyping @@ -837,6 +837,8 @@ BEGIN { # Do nothing on blank lines. } else if ( $0 == "error shutting down ssl" ) { # Common error message when using httping, ignore it. + } else if ( $0 == "ping: sendto: No route to host" ) { + # Mac OS X will print a separate timeout line still, so ignore this message } else if ( $0 ~ /^Request timeout for icmp_seq [0-9]+/ ) { # Reply timeout is printed on Mac OS X.