diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-11-05 03:41:13 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-11-05 06:38:27 +0300 |
commit | 089bebb794cdc11ee3680cc476afe5550448129f (patch) | |
tree | 6fc7e4b1490c37200850903f36fc825e75ba8c1b /bin/ncp-diag | |
parent | 3cd1cd55e8c372a7e711000575bfca62fca711de (diff) |
nc-info: speedupv0.66.1
Diffstat (limited to 'bin/ncp-diag')
-rw-r--r-- | bin/ncp-diag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp-diag b/bin/ncp-diag index 28e7c1a4..4e646c0f 100644 --- a/bin/ncp-diag +++ b/bin/ncp-diag @@ -87,7 +87,7 @@ CERTS="$( grep "SSLCertificateFile /etc/letsencrypt/live/" /etc/apache2/sites-av [[ "$CERTS" == "" ]] && CERTS=none echo "certificates|$CERTS" -RESOLV="$( ping -c 1 "$CERTS" 2>/dev/null | head -1 | grep -oP '\d{1,3}(.\d{1,3}){3}' )" +RESOLV="$( ping -c1 -w1 "$CERTS" 2>/dev/null | head -1 | grep -oP '\d{1,3}(.\d{1,3}){3}' )" echo "NAT loopback|$( [[ "$RESOLV" == "$IP" ]] && echo yes || echo no )" # Other |