luci ssr plus: display server node type

This commit is contained in:
coolsnowwolf 2018-11-11 23:12:57 +08:00
parent e25c6e4754
commit ee77063ca0
2 changed files with 3 additions and 3 deletions

View File

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

View File

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