Print name of chosen upstream DNS as well

Signed-off-by: MichaIng <micha@dietpi.com>
pull/2993/head
MichaIng 5 years ago committed by GitHub
parent ea67c828cd
commit 85673b8273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save