1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Print name of chosen upstream DNS as well

Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
MichaIng 2019-12-04 18:59:25 +01:00 committed by GitHub
parent ea67c828cd
commit 85673b8273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1071,7 +1071,9 @@ setDNS() {
fi
# Display final selection
printf " %b Using upstream DNS: %s %s\\n" "${INFO}" "${PIHOLE_DNS_1}" "${PIHOLE_DNS_2}"
local DNSIP=${PIHOLE_DNS_1}
[[ -z ${PIHOLE_DNS_2} ]] || DNSIP+=", ${PIHOLE_DNS_2}"
printf " %b Using upstream DNS: %s (%s)\\n" "${INFO}" "${DNSchoices}" "${DNSIP}"
}
# Allow the user to enable/disable logging