From 7eff1ea6a024b213dacb41e7fa08f95ee27a66c0 Mon Sep 17 00:00:00 2001 From: lwb1978 <86697442+lwb1978@users.noreply.github.com> Date: Thu, 14 Mar 2024 00:03:06 +0800 Subject: [PATCH] luci: fix #3025 --- .../root/usr/share/passwall/subscribe.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/luci-app-passwall/root/usr/share/passwall/subscribe.lua b/luci-app-passwall/root/usr/share/passwall/subscribe.lua index bc9c0cfe2..2b4c75d04 100755 --- a/luci-app-passwall/root/usr/share/passwall/subscribe.lua +++ b/luci-app-passwall/root/usr/share/passwall/subscribe.lua @@ -550,10 +550,12 @@ local function processData(szType, content, add_mode, add_from) result.protocol = 'shadowsocks' end - if result.type == "SS-Rust" or result.type == "Xray" then - if method:lower() == "chacha20-ietf-poly1305" then - result.method = "chacha20-poly1305" - end + if result.type == "SS-Rust" and method:lower() == "chacha20-poly1305" then + result.method = "chacha20-ietf-poly1305" + end + + if result.type == "Xray" and method:lower() == "chacha20-ietf-poly1305" then + result.method = "chacha20-poly1305" end if result.plugin then