1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Fix IPv6 with v2ray

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-05 10:20:03 +01:00
parent c5d7211abf
commit 812d7b0dc8

View file

@ -37,6 +37,8 @@ set_ipv6_state() {
delete dhcp.lan.ra_default
delete dhcp.lan.ra_management
delete dhcp.lan.ra_preference
del_list v2ray.main.inbounds="omr6"
commit v2ray
EOF
config_load shadowsocks-libev
config_foreach set_shadowsocks_address ss_redir "0.0.0.0"
@ -54,6 +56,13 @@ set_ipv6_state() {
set network.lan.ipv6="1"
set network.lan.delegate="0"
EOF
if [ "$(uci -q get v2ray.main.inbounds | grep omr6)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list v2ray.main.inbounds="omr6"
commit v2ray
EOF
fi
if [ "$(network.lan.ip6assign)" = "" ]; then
uci -q set network.lan.ip6assign='60'
fi