mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Limit redirections to LAN
This commit is contained in:
parent
e05c057c63
commit
d2fce4961e
2 changed files with 2 additions and 0 deletions
|
@ -472,6 +472,7 @@ add_v2ray_redirect_rules() {
|
|||
| sort -u)"
|
||||
|
||||
[ "$(uci -q get v2ray.main_transparent_proxy.redirect_udp)" = "1" ] && [ "$(uci -q get v2ray.omrout.protocol)" != "socks" ] && portudp="$port"
|
||||
ifnames="$(uci -q get shadowsocks-libev.ss_rules.ifnames)"
|
||||
|
||||
local tmp="/tmp/v2rrules"
|
||||
json_init
|
||||
|
|
|
@ -481,6 +481,7 @@ add_xray_redirect_rules() {
|
|||
| sort -u)"
|
||||
|
||||
[ "$(uci -q get xray.main_transparent_proxy.redirect_udp)" = "1" ] && [ "$(uci -q get xray.omrout.protocol)" != "socks" ] && portudp="$port"
|
||||
ifnames="$(uci -q get shadowsocks-libev.ss_rules.ifnames)"
|
||||
|
||||
local tmp="/tmp/xrrules"
|
||||
json_init
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue