Skip to content

Commit ca45bbd

Browse files
committed
Fixed DNS Server Count Bug
- upstream DNS server count bug fixed - if there are more than 8 upstream servers, "8+ servers" will be displayed
1 parent b7efa35 commit ca45bbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

padd.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export LC_ALL=en_US.UTF-8 > /dev/null 2>&1 || export LC_ALL=en_GB.UTF-8 > /dev/n
1515
############################################ VARIABLES #############################################
1616

1717
# VERSION
18-
PADDVersion="2.2.0"
18+
PADDVersion="2.2.1"
1919

2020
# DATE
2121
today=$(date +%Y%m%d)
@@ -267,6 +267,8 @@ GetNetworkInformation() {
267267
dnsInformation="Cloudflared"
268268
fi
269269
dnsInformation="1 server"
270+
elif [[ ${dnsCount} -gt 8 ]]; then
271+
dnsInformation="8+ servers"
270272
else
271273
dnsInformation="${dnsCount} servers"
272274
fi

0 commit comments

Comments
 (0)