Use systemd instead of sysctl to disable IPv6

Signed-off-by: Alban Vidal <alban.vidal@zordhak.fr>
This commit is contained in:
Alban Vidal 2019-03-22 05:44:53 +01:00
parent 1eca671f2c
commit f7b589a070

View File

@ -174,7 +174,8 @@ if $DISABLE_IPv6 ; then
# Disable ipv6 on all connexion
net.ipv6.conf.all.disable_ipv6 = 1
EOF
sysctl -p /etc/sysctl.d/98-disable-ipv6.conf
# Disable IPv6 now
systemctl restart systemd-sysctl.service
fi
################################################################################