diff --git a/lnxrouter b/lnxrouter old mode 100755 new mode 100644 index 502d962..4746e6a --- a/lnxrouter +++ b/lnxrouter @@ -1001,7 +1001,6 @@ iptb() return $? } -IP_VERs=("4" "6") start_nat() { local SUBNET_NET @@ -2192,6 +2191,12 @@ echo "NOTICE: Not showing all operations done to iptables rules" [[ "$NO4" -eq 1 ]] && echo -e "\nWARN: Since you're using in this mode (no IPv4 Internet), make sure you've read Notice 1\n" >&2 +if [[ "$IPV6" -eq 0 ]]; then + IP_VERs=("4") +else + IP_VERs=("4" "6") +fi + # enable Internet sharing if [[ "$SHARE_METHOD" == "none" ]]; then