diff --git a/v2ray-core/files/etc/init.d/v2ray b/v2ray-core/files/etc/init.d/v2ray index 6d3bc4095..1c122c897 100755 --- a/v2ray-core/files/etc/init.d/v2ray +++ b/v2ray-core/files/etc/init.d/v2ray @@ -450,7 +450,7 @@ add_v2ray_redirect_rules() { commandline="-l ${port} -s $OUTBOUND_SERVERS_V4 --rule-name def --src-default forward --dst-default forward --local-default forward" [ "$(uci -q get v2ray.main_transparent_proxy.redirect_udp)" = "1" ] && ([ "$(uci -q get v2ray.omrout.protocol)" = "vless" ] || [ "$(uci -q get v2ray.omrout.protocol)" = "vmess" ]) && commandline="$commandline -L ${port}" v2ray-rules $commandline - [ "$(uci -q get v2ray.main.inbounds | grep omr6)" != "" ] && { + [ "$(uci -q get v2ray.main.inbounds | grep omr6)" != "" ] && [ -n "$OUTBOUND_SERVERS_V6" ] && { v2ray-rules6 -f commandline="-l $((port+1)) -L $((port+1)) -s $OUTBOUND_SERVERS_V6 --rule-name def --src-default forward --dst-default forward --local-default forward" [ "$(uci -q get v2ray.main_transparent_proxy.redirect_udp)" = "1" ] && ([ "$(uci -q get v2ray.omrout.protocol)" = "vless" ] || [ "$(uci -q get v2ray.omrout.protocol)" = "vmess" ]) && commandline="$commandline -L ${port+1}" diff --git a/v2ray-core/files/usr/bin/v2ray-rules6 b/v2ray-core/files/usr/bin/v2ray-rules6 index 0f9cfeb35..2a96bdf94 100755 --- a/v2ray-core/files/usr/bin/v2ray-rules6 +++ b/v2ray-core/files/usr/bin/v2ray-rules6 @@ -52,7 +52,7 @@ Usage: v2ray-rules6 [options] --local-default Default action for local out TCP traffic -The following ipsets will be created by ss-rules. They are also intended to be +The following ipsets will be created by v2ray-rules. They are also intended to be populated by other programs like dnsmasq with ipset support v2ray_rules6_src_bypass @@ -73,7 +73,7 @@ o_dst_default=bypass o_local_default=bypass __errmsg() { - echo "ss-rules6: $*" >&2 + echo "v2ray-rules6: $*" >&2 } v2ray_rules6_parse_args() {