|
@@ -10,9 +10,9 @@ m:section(SimpleSection).template = "shadowsocksr/status"
|
|
|
local server_table = {}
|
|
local server_table = {}
|
|
|
uci:foreach("shadowsocksr", "servers", function(s)
|
|
uci:foreach("shadowsocksr", "servers", function(s)
|
|
|
if s.alias then
|
|
if s.alias then
|
|
|
- server_table[s[".name"]] = "[%s]:%s" % {string.upper(s.type), s.alias}
|
|
|
|
|
|
|
+ server_table[s[".name"]] = "[%s]:%s" % {string.upper(s.v2ray_protocol or s.type), s.alias}
|
|
|
elseif s.server and s.server_port then
|
|
elseif s.server and s.server_port then
|
|
|
- server_table[s[".name"]] = "[%s]:%s:%s" % {string.upper(s.type), s.server, s.server_port}
|
|
|
|
|
|
|
+ server_table[s[".name"]] = "[%s]:%s:%s" % {string.upper(s.v2ray_protocol or s.type), s.server, s.server_port}
|
|
|
end
|
|
end
|
|
|
end)
|
|
end)
|
|
|
|
|
|