From 057f8cf9b9dfe875c4210d59a22924530f293084 Mon Sep 17 00:00:00 2001 From: xydche Date: Sat, 12 Dec 2020 11:26:21 +0800 Subject: [PATCH] fix gen_config.lua (#5917) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复HTTP伪装时生成错误的配置文件。 --- .../luasrc/model/cbi/v2ray_server/api/gen_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/gen_config.lua b/package/lean/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/gen_config.lua index 277be6f8a..8e2278f10 100755 --- a/package/lean/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/gen_config.lua +++ b/package/lean/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/gen_config.lua @@ -125,9 +125,9 @@ function gen_config(user) header = { type = user.tcp_guise, request = (user.tcp_guise == "http") and { - path = {user.tcp_guise_http_path} or {"/"}, + path = user.tcp_guise_http_path or {"/"}, headers = { - Host = {user.tcp_guise_http_host} or {} + Host = user.tcp_guise_http_host or {} } } or nil }