Do not use name resolving for --notrim check

This causes a significant delay on servers with many open connections
This commit is contained in:
cDR 2017-02-01 11:02:10 +01:00 committed by rallytime
parent 780457f934
commit 6539dbdbca

View file

@ -246,7 +246,7 @@ main() {
fi
# Check to see if --notrim is a valid netstat option
if netstat --notrim 2>&1 >/dev/null | grep -q 'unrecognized'; then
if netstat --notrim -n 2>&1 >/dev/null | grep -q 'unrecognized'; then
NS_NOTRIM=''
fi