mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

tls_only for frps v0.32.0+ extra setting list for possible new options update translation replace PKG_MAINTAINER‘s name with github ID
30 lines
614 B
HTML
30 lines
614 B
HTML
<%#
|
|
Copyright 2020 lwz322 <lwz322@qq.com>
|
|
Licensed to the public under the MIT License.
|
|
-%>
|
|
|
|
<%
|
|
local dsp = require "luci.dispatcher"
|
|
-%>
|
|
|
|
<fieldset class="cbi-section">
|
|
<p id="frps_status">
|
|
<em><%:Collecting data...%></em>
|
|
</p>
|
|
</fieldset>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
XHR.poll(5, '<%=dsp.build_url("admin/services/frps/status")%>', null,
|
|
function (x, data) {
|
|
if (x.status !== 200 || !data) {
|
|
return;
|
|
}
|
|
|
|
var frpsStatusElm = document.getElementById('frps_status');
|
|
frpsStatusElm.innerHTML = data.running
|
|
? '<%:Running%>'
|
|
: '<%:Not Running%>';
|
|
}
|
|
);
|
|
//]]></script>
|