1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Force IPv6 disabled for LAN interface

This commit is contained in:
Ycarus 2019-02-03 19:46:21 +01:00
parent a9b513f2b1
commit 952566517a
2 changed files with 8 additions and 3 deletions

View file

@ -31,12 +31,14 @@ set_ipv6_state() {
uci -q commit firewall
if [ "$disable_ipv6" == "1" ]; then
uci -q set dhcp.lan.ra_default="0"
uci -q set network.lan.ipv6="0"
fi
if [ "$disable_ipv6" == "1" ]; then
uci -q del dhcp.lan.dhcpv6
uci -q del dhcp.lan.ra
uci -q del dhcp.lan.ra_default
uci -q delete network.lan.ipv6
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra
uci -q delete dhcp.lan.ra_default
uci -q set shadowsocks-libev.hi.local_address="0.0.0.0"
else
uci -q set shadowsocks-libev.hi.local_address="::"