mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Disable IPv6 for all interfaces when disabled
This commit is contained in:
parent
9cd22c9538
commit
d70d74bd04
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ omr_intf_set() {
|
|||
[ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "omrvpn" ] && [ "$1" != "glorytun" ] && return
|
||||
|
||||
uci -q set openmptcprouter.$1=interface
|
||||
config_get disable_ipv6 settings disable_ipv6 "0"
|
||||
if [ "$disable_ipv6" = "1" ]; then
|
||||
uci -q set network.$1.ipv6=0
|
||||
else
|
||||
uci -q set network.$1.ipv6=1
|
||||
fi
|
||||
}
|
||||
|
||||
set_ipv6_state() {
|
||||
|
|
Loading…
Reference in a new issue