exclude 6 if not enabled

This commit is contained in:
garywill 2024-02-25 10:00:00 +08:00
parent 97b1ef5bd0
commit 40872ebb9e
1 changed files with 6 additions and 1 deletions

7
lnxrouter Executable file → Normal file
View File

@ -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