fix gen_config.lua (#5917)

修复HTTP伪装时生成错误的配置文件。
This commit is contained in:
xydche 2020-12-12 11:26:21 +08:00 committed by GitHub
parent 59fe7c1ac6
commit 057f8cf9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}