mirror of
https://github.com/pia-foss/manual-connections.git
synced 2025-02-05 14:08:29 +00:00
Check if IPv6 got disabled via kernel parameter before trying to disable it
This commit is contained in:
parent
3814d4be97
commit
338ca1ac42
|
@ -66,8 +66,11 @@ fi
|
|||
|
||||
# PIA currently does not support IPv6. In order to be sure your VPN
|
||||
# connection does not leak, it is best to disabled IPv6 altogether.
|
||||
if [ $(sysctl -n net.ipv6.conf.all.disable_ipv6) -ne 1 ] ||
|
||||
[ $(sysctl -n net.ipv6.conf.default.disable_ipv6) -ne 1 ]
|
||||
# IPv6 can also be disabled via kernel commandline param, so we must
|
||||
# first check if this is the case.
|
||||
if [[ -f /proc/net/if_inet6 ]] &&
|
||||
[[ $(sysctl -n net.ipv6.conf.all.disable_ipv6) -ne 1 ||
|
||||
$(sysctl -n net.ipv6.conf.default.disable_ipv6) -ne 1 ]]
|
||||
then
|
||||
echo 'You should consider disabling IPv6 by running:'
|
||||
echo 'sysctl -w net.ipv6.conf.all.disable_ipv6=1'
|
||||
|
|
|
@ -37,8 +37,11 @@ check_tool jq jq
|
|||
|
||||
# PIA currently does not support IPv6. In order to be sure your VPN
|
||||
# connection does not leak, it is best to disabled IPv6 altogether.
|
||||
if [ $(sysctl -n net.ipv6.conf.all.disable_ipv6) -ne 1 ] ||
|
||||
[ $(sysctl -n net.ipv6.conf.default.disable_ipv6) -ne 1 ]
|
||||
# IPv6 can also be disabled via kernel commandline param, so we must
|
||||
# first check if this is the case.
|
||||
if [[ -f /proc/net/if_inet6 ]] &&
|
||||
[[ $(sysctl -n net.ipv6.conf.all.disable_ipv6) -ne 1 ||
|
||||
$(sysctl -n net.ipv6.conf.default.disable_ipv6) -ne 1 ]]
|
||||
then
|
||||
echo 'You should consider disabling IPv6 by running:'
|
||||
echo 'sysctl -w net.ipv6.conf.all.disable_ipv6=1'
|
||||
|
|
Loading…
Reference in New Issue
Block a user