luci-ssr-plus: fix v2ray ws json format issue

This commit is contained in:
LEAN-ESX 2019-10-12 02:33:54 -07:00
parent 9f68660b59
commit 3580e0f1d5
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_VERSION:=1
PKG_RELEASE:=103
PKG_RELEASE:=105
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \

View File

@ -59,7 +59,7 @@ local v2ray = {
type = server.kcp_guise
}
} or nil,
wsSettings = (server.transport == "ws") and {
wsSettings = (server.transport == "ws") and (server.ws_path ~= nil or server.ws_host ~= nil) and {
path = server.ws_path,
headers = (server.ws_host ~= nil) and {
Host = server.ws_host