From ca45bbda551107b6a4c4a88aed5d9a7513942cef Mon Sep 17 00:00:00 2001 From: Jim McKenna Date: Sun, 10 Feb 2019 14:20:04 -0500 Subject: [PATCH] Fixed DNS Server Count Bug - upstream DNS server count bug fixed - if there are more than 8 upstream servers, "8+ servers" will be displayed --- padd.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/padd.sh b/padd.sh index 6dd23df9..d0aaf8cb 100755 --- a/padd.sh +++ b/padd.sh @@ -15,7 +15,7 @@ export LC_ALL=en_US.UTF-8 > /dev/null 2>&1 || export LC_ALL=en_GB.UTF-8 > /dev/n ############################################ VARIABLES ############################################# # VERSION -PADDVersion="2.2.0" +PADDVersion="2.2.1" # DATE today=$(date +%Y%m%d) @@ -267,6 +267,8 @@ GetNetworkInformation() { dnsInformation="Cloudflared" fi dnsInformation="1 server" + elif [[ ${dnsCount} -gt 8 ]]; then + dnsInformation="8+ servers" else dnsInformation="${dnsCount} servers" fi