From cefc5f92917b607ffa517d8f42f71debfaa7da8c Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 17 Sep 2024 18:30:31 +0200 Subject: [PATCH] Fix omr-bypass with some V2Ray/XRay protocol --- omr-bypass/files/etc/init.d/omr-bypass-nft | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omr-bypass/files/etc/init.d/omr-bypass-nft b/omr-bypass/files/etc/init.d/omr-bypass-nft index 7d9912c211..661b678fcc 100755 --- a/omr-bypass/files/etc/init.d/omr-bypass-nft +++ b/omr-bypass/files/etc/init.d/omr-bypass-nft @@ -732,9 +732,9 @@ _intf_rule() { #config_load shadowsocks-rust #config_foreach _intf_rule_ss_rules ss_rules _intf_rule_ss_rules - elif [ "$(uci -q get openmptcprouter.settings.proxy)" = "v2ray" ] && [ "$(uci -q get v2ray.main.enabled)" = "1" ]; then + elif [ -n "$(uci -q get openmptcprouter.settings.proxy | grep v2ray)" ] && [ "$(uci -q get v2ray.main.enabled)" = "1" ]; then _intf_rule_v2ray_rules - elif [ "$(uci -q get openmptcprouter.settings.proxy)" = "xray" ] && [ "$(uci -q get xray.main.enabled)" = "1" ]; then + elif [ -n "$(uci -q get openmptcprouter.settings.proxy | grep xray)" ] && [ "$(uci -q get xray.main.enabled)" = "1" ]; then _intf_rule_xray_rules fi