1
0
Fork 0
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:
Ycarus 2019-04-18 22:51:49 +02:00
parent 9cd22c9538
commit d70d74bd04

View file

@ -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() {