mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 23:23:42 +00:00
Simplified use4andor6 logic.
This commit is contained in:
parent
7fb7df7f6e
commit
443fe43ecc
1 changed files with 12 additions and 15 deletions
|
@ -191,24 +191,21 @@ use4andor6() {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $useIPv4 ] && [ ! $useIPv6 ]; then
|
if [ $useIPv4 ]; then
|
||||||
getStaticIPv4Settings
|
getStaticIPv4Settings
|
||||||
setStaticIPv4
|
setStaticIPv4
|
||||||
echo "::: Using IPv4 on $IPv4addr"
|
echo "::: Using IPv4 on $IPv4addr"
|
||||||
echo "::: IPv6 will NOT be used."
|
else
|
||||||
fi
|
echo "::: Using IPv6 on $piholeIPv6"
|
||||||
if [ ! $useIPv4 ] && [ $useIPv6 ]; then
|
fi
|
||||||
useIPv6dialog
|
|
||||||
echo "::: IPv4 will NOT be used."
|
if [ $useIPv6 ]; then
|
||||||
echo "::: Using IPv6 on $piholeIPv6"
|
useIPv6dialog
|
||||||
fi
|
echo "::: Using IPv6 on $piholeIPv6"
|
||||||
if [ $useIPv4 ] && [ $useIPv6 ]; then
|
else
|
||||||
getStaticIPv4Settings
|
echo "::: IPv6 will NOT be used."
|
||||||
setStaticIPv4
|
fi
|
||||||
useIPv6dialog
|
|
||||||
echo "::: Using IPv4 on $IPv4addr"
|
|
||||||
echo "::: Using IPv6 on $piholeIPv6"
|
|
||||||
fi
|
|
||||||
if [ ! $useIPv4 ] && [ ! $useIPv6 ]; then
|
if [ ! $useIPv4 ] && [ ! $useIPv6 ]; then
|
||||||
echo "::: Cannot continue, neither IPv4 or IPv6 selected"
|
echo "::: Cannot continue, neither IPv4 or IPv6 selected"
|
||||||
echo "::: Exiting"
|
echo "::: Exiting"
|
||||||
|
|
Loading…
Reference in a new issue