mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-29 01:41:51 +08:00
27 lines
821 B
HTML
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%>
|