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