Removal of DISABLE_IPV6

This commit is contained in:
DyonR 2020-12-08 19:53:46 +01:00
parent d3c3aa36f5
commit 1ff1eaac8c
2 changed files with 9 additions and 11 deletions

View File

@ -52,11 +52,9 @@ $ docker run --privileged -d \
|`HEALTH_CHECK_HOST`| No |This is the host or IP that the healthcheck script will use to check an active connection|`HEALTH_CHECK_HOST=one.one.one.one`|`one.one.one.one`|
|`HEALTH_CHECK_INTERVAL`| No |This is the time in seconds that the container waits to see if the internet connection still works (check if VPN died)|`HEALTH_CHECK_INTERVAL=300`|`300`|
|`HEALTH_CHECK_SILENT`| No |Set to `1` to supress the 'Network is up' message. Defaults to `1` if unset.|`HEALTH_CHECK_SILENT=1`|`1`|
|`DISABLE_IPV6`\*| No |Setting the value of this to `0` will **enable** IPv6 in sysctl. `1` will disable IPv6 in sysctl.|`DISABLE_IPV6=1`|`1`|
|`INSTALL_PYTHON3`| No |Set this to `yes` to let the container install Python3.|`INSTALL_PYTHON3=yes`|`no`|
|`ADDITIONAL_PORTS`| No |Adding a comma delimited list of ports will allow these ports via the iptables script.|`ADDITIONAL_PORTS=1234,8112`||
\*This option was initially added as a way to fix problems with VPN providers that support IPv6 and might not work at all. I am unable to test this since my VPN provider does not support IPv6, nor I have an IPv6 connection.
## Volumes

View File

@ -21,15 +21,15 @@ else
export VPN_ENABLED="yes"
fi
export DISABLE_IPV6=$(echo "${DISABLE_IPV6,,}")
echo "[INFO] DISABLE_IPV6 is set to '${DISABLE_IPV6}'" | ts '%Y-%m-%d %H:%M:%.S'
if [[ $DISABLE_IPV6 == "1" || $DISABLE_IPV6 == "true" || $DISABLE_IPV6 == "yes" || $DISABLE_IPV6 == "" ]]; then
echo "[INFO] Disabling IPv6 in sysctl" | ts '%Y-%m-%d %H:%M:%.S'
sysctl -w net.ipv6.conf.all.disable_ipv6=1 > /dev/null 2>&1
else
echo "[INFO] Enabling IPv6 in sysctl" | ts '%Y-%m-%d %H:%M:%.S'
sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null 2>&1
fi
#export DISABLE_IPV6=$(echo "${DISABLE_IPV6,,}")
#echo "[INFO] DISABLE_IPV6 is set to '${DISABLE_IPV6}'" | ts '%Y-%m-%d %H:%M:%.S'
#if [[ $DISABLE_IPV6 == "1" || $DISABLE_IPV6 == "true" || $DISABLE_IPV6 == "yes" || $DISABLE_IPV6 == "" ]]; then
# echo "[INFO] Disabling IPv6 in sysctl" | ts '%Y-%m-%d %H:%M:%.S'
# sysctl -w net.ipv6.conf.all.disable_ipv6=1 > /dev/null 2>&1
#else
# echo "[INFO] Enabling IPv6 in sysctl" | ts '%Y-%m-%d %H:%M:%.S'
# sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null 2>&1
#fi
if [[ $VPN_ENABLED == "yes" ]]; then
# Check if VPN_TYPE is set.