mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Merge pull request #306 from pi-hole/IPv6-Killer
Fixes IPv6 surviving a reinstall
This commit is contained in:
commit
dee8ce587d
1 changed files with 7 additions and 0 deletions
|
@ -148,6 +148,12 @@ chooseInterface() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cleanupIPv6() {
|
||||||
|
# Removes IPv6 indicator file if we are not using IPv6
|
||||||
|
if [ -f "/etc/pihole/.useIPv6" ] && [ ! $useIPv6 ]; then
|
||||||
|
rm /etc/pihole/.useIPv6
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
use4andor6() {
|
use4andor6() {
|
||||||
# Let use select IPv4 and/or IPv6
|
# Let use select IPv4 and/or IPv6
|
||||||
|
@ -187,6 +193,7 @@ use4andor6() {
|
||||||
echo "::: Exiting"
|
echo "::: Exiting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
cleanupIPv6
|
||||||
else
|
else
|
||||||
echo "::: Cancel selected. Exiting..."
|
echo "::: Cancel selected. Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue