small-packages/luci-app-ssr-plus/luasrc/view/shadowsocksr/socket.htm
2026-05-10 09:48:30 +08:00

27 lines
821 B
HTML

<%+cbi/valueheader%>
<%
local hint = self:cfgvalue(section)
local cache = self.detect_cache
local text = "N/A"
local color = "#999999"
if cache then
if cache.socket then
text = "ok"
color = "#249400"
else
text = "fail"
color = "#ff0000"
end
end
%>
<span class="socket-connected" hint="<%=hint%>"><font style="color:<%=color%>"><%=text%></font></span>
<span class="transport" hint="<%=self.transport%>"></span>
<span class="wsPath" hint="<%=self.ws_path%>"></span>
<span class="wsHost" hint="<%=self.ws_host%>"></span>
<span class="tlsHost" hint="<%=self.tls_host%>"></span>
<span class="tls" hint="<%=self.tls%>"></span>
<span class="type" hint="<%=self.type%>"></span>
<span class="proto" hint="<%=self.proto%>"></span>
<span class="reality" hint="<%=self.reality%>"></span>
<%+cbi/valuefooter%>