Use ipv6 if available
This commit is contained in:
parent
17b03dfd07
commit
04a2f88815
|
@ -99,7 +99,9 @@ function pihole_update {
|
|||
setupVars=$piholeDir/setupVars.conf
|
||||
echo "piholeInterface=${PIHOLE_IFACE}" > ${setupVars}
|
||||
echo "IPv4_address=${IPv4_address}" >> ${setupVars}
|
||||
echo "IPv6_address=${IPv6_address}" >> ${setupVars}
|
||||
if [ ${#IPv6_address} -gt 0 ]; then
|
||||
echo "IPv6_address=${IPv6_address}" >> ${setupVars}
|
||||
fi
|
||||
echo "piholeDNS1=${PIHOLE_DNS1}" >> ${setupVars}
|
||||
echo "piholeDNS2=${PIHOLE_DNS1}" >> ${setupVars}
|
||||
|
||||
|
|
Loading…
Reference in New Issue