This commit is contained in:
Jeffrey Serio 2024-11-24 05:15:15 -06:00
parent 9fbae11900
commit 04afc6e08f

View File

@ -331,7 +331,7 @@ function disable_ipv6() {
if ! grep "net.ipv6.conf.all.disable_ipv6" /etc/sysctl.conf; then
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
else
echo "IPv6 already disabled."