From b5265110e06ad99b9559721371d0f396f7d92948 Mon Sep 17 00:00:00 2001 From: kenzok8 Date: Sun, 11 May 2025 00:24:54 +0800 Subject: [PATCH] update 2025-05-11 00:24:54 --- luci-app-passwall/luasrc/passwall/util_xray.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index bdb713edf..c2c1eea89 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -165,9 +165,9 @@ function gen_outbound(flag, node, tag, proxy_table) spiderX = node.reality_spiderX or "/", fingerprint = (node.type == "Xray" and node.fingerprint and node.fingerprint ~= "") and node.fingerprint or "chrome" } or nil, - rawSettings = ((node.transport == "raw" or node.transport == "tcp") and node.protocol ~= "socks") and { + rawSettings = ((node.transport == "raw" or node.transport == "tcp") and node.protocol ~= "socks" and (node.tcp_guise and node.tcp_guise ~= "none")) and { header = { - type = node.tcp_guise or "none", + type = node.tcp_guise, request = (node.tcp_guise == "http") and { path = node.tcp_guise_http_path or {"/"}, headers = {