1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2024-01-12 17:29:57 +01:00
parent e05c057c63
commit d2fce4961e
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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