Use systemd instead of sysctl to disable IPv6
Signed-off-by: Alban Vidal <alban.vidal@zordhak.fr>
This commit is contained in:
parent
1eca671f2c
commit
f7b589a070
@ -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
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user