Use ipv6 if available

This commit is contained in:
Bob Mottram 2016-11-01 11:48:55 +00:00
parent 17b03dfd07
commit 04a2f88815
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ function pihole_update {
setupVars=$piholeDir/setupVars.conf setupVars=$piholeDir/setupVars.conf
echo "piholeInterface=${PIHOLE_IFACE}" > ${setupVars} echo "piholeInterface=${PIHOLE_IFACE}" > ${setupVars}
echo "IPv4_address=${IPv4_address}" >> ${setupVars} echo "IPv4_address=${IPv4_address}" >> ${setupVars}
if [ ${#IPv6_address} -gt 0 ]; then
echo "IPv6_address=${IPv6_address}" >> ${setupVars} echo "IPv6_address=${IPv6_address}" >> ${setupVars}
fi
echo "piholeDNS1=${PIHOLE_DNS1}" >> ${setupVars} echo "piholeDNS1=${PIHOLE_DNS1}" >> ${setupVars}
echo "piholeDNS2=${PIHOLE_DNS1}" >> ${setupVars} echo "piholeDNS2=${PIHOLE_DNS1}" >> ${setupVars}