From ee77063ca0ed63487090b424875bf46cd264f4ad Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 11 Nov 2018 23:12:57 +0800 Subject: [PATCH] luci ssr plus: display server node type --- package/lean/luci-app-ssr-plus/Makefile | 2 +- .../luasrc/model/cbi/shadowsocksr/client.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index 14bcc8386..d922f9347 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ssr-plus PKG_VERSION:=1 -PKG_RELEASE:=43 +PKG_RELEASE:=45 PO2LMO:=$(BUILD_DIR)/luci-base/po2lmo diff --git a/package/lean/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua b/package/lean/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua index 205a8b692..7e2cb1de4 100644 --- a/package/lean/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua +++ b/package/lean/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua @@ -15,9 +15,9 @@ m:section(SimpleSection).template = "shadowsocksr/status" local server_table = {} uci:foreach(shadowsocksr, "servers", function(s) if s.alias then - server_table[s[".name"]] = s.alias + server_table[s[".name"]] = "[%s]:%s" %{string.upper(s.type), s.alias} elseif s.server and s.server_port then - server_table[s[".name"]] = "%s:%s" %{s.server, s.server_port} + server_table[s[".name"]] = "[%s]:%s:%s" %{string.upper(s.type), s.server, s.server_port} end end)