From 721f1bc19f5ee3238ddc00845ec6cda203b6e83f 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 cd93a24..e302403 100755 --- a/prettyping +++ b/prettyping @@ -816,6 +816,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.