From a8e0c0642e7a658cbc002d1a1d6b7c652835e44e Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sun, 13 Jun 2021 20:15:49 +0200 Subject: [PATCH] Fix LAN block workaround on v2ray --- v2ray-core/files/usr/bin/v2ray-rules | 2 +- v2ray-core/files/usr/bin/v2ray-rules6 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2ray-core/files/usr/bin/v2ray-rules b/v2ray-core/files/usr/bin/v2ray-rules index 695f2819d..982ef92f2 100755 --- a/v2ray-core/files/usr/bin/v2ray-rules +++ b/v2ray-core/files/usr/bin/v2ray-rules @@ -275,7 +275,7 @@ v2r_rules_iptchains_mkprerules() { local proto="$1" if [ -z "$o_ifnames" ]; then - echo "-I PREROUTING 1 -p $proto -j v2r_${rule}_pre_src" + echo "-A PREROUTING -p $proto -j v2r_${rule}_pre_src" else echo $o_ifnames \ | tr ' ' '\n' \ diff --git a/v2ray-core/files/usr/bin/v2ray-rules6 b/v2ray-core/files/usr/bin/v2ray-rules6 index 952d64b04..fdc383586 100755 --- a/v2ray-core/files/usr/bin/v2ray-rules6 +++ b/v2ray-core/files/usr/bin/v2ray-rules6 @@ -266,7 +266,7 @@ v2ray_rules6_iptchains_mkprerules() { local proto="$1" if [ -z "$o_ifnames" ]; then - echo "-I PREROUTING 1 -p $proto -j v2r6_${rule}_pre_src" + echo "-A PREROUTING -p $proto -j v2r6_${rule}_pre_src" else echo $o_ifnames \ | tr ' ' '\n' \