mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix IPv6 NAT66 support
This commit is contained in:
parent
0ba9a34100
commit
d88541cddc
4 changed files with 9 additions and 7 deletions
|
@ -1189,12 +1189,12 @@ function set_ipv6_state(disable_ipv6)
|
|||
if disable_ipv6 == "1" then
|
||||
ucic:set("dhcp","lan","ra_default","0")
|
||||
ucic:set("network","lan","ipv6","0")
|
||||
--else
|
||||
else
|
||||
-- ucic:set("dhcp","lan","ra_default","1")
|
||||
ucic:set("network","lan","ipv6","1")
|
||||
ucic:set("network","lan","delegate","0")
|
||||
end
|
||||
|
||||
ucic:set("network","lan","ipv6","0")
|
||||
|
||||
-- Disable/Enable IPv6 DHCP and change Shadowsocks listen address
|
||||
if disable_ipv6 == "1" then
|
||||
luci.sys.call("uci -q del dhcp.lan.dhcpv6")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue