Skip to content

Commit

Permalink
Fixed DNS Server Count Bug
Browse files Browse the repository at this point in the history
- upstream DNS server count bug fixed
- if there are more than 8 upstream servers, "8+ servers" will be displayed
  • Loading branch information
jpmck committed Feb 10, 2019
1 parent b7efa35 commit ca45bbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -267,6 +267,8 @@ GetNetworkInformation() {
dnsInformation="Cloudflared"
fi
dnsInformation="1 server"
elif [[ ${dnsCount} -gt 8 ]]; then
dnsInformation="8+ servers"
else
dnsInformation="${dnsCount} servers"
fi
Expand Down

0 comments on commit ca45bbd

Please sign in to comment.