mirror of
https://github.com/garywill/linux-router.git
synced 2025-11-09 05:04:04 +01:00
exclude 6 if not enabled
This commit is contained in:
parent
97b1ef5bd0
commit
40872ebb9e
7
lnxrouter
Executable file → Normal file
7
lnxrouter
Executable file → Normal file
@ -1001,7 +1001,6 @@ iptb()
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
IP_VERs=("4" "6")
|
|
||||||
|
|
||||||
start_nat() {
|
start_nat() {
|
||||||
local SUBNET_NET
|
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
|
[[ "$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
|
# enable Internet sharing
|
||||||
if [[ "$SHARE_METHOD" == "none" ]]; then
|
if [[ "$SHARE_METHOD" == "none" ]]; then
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user