<% local api = require "luci.model.cbi.passwall.api.api" local dsp = require "luci.dispatcher" local ipkg = require "luci.model.ipkg" local function is_finded(e) local result=luci.sys.exec("find /usr/*bin -iname "..e.." -type f") if result~="" then return true end return false end local tcp_node_num = api.uci_get_type("global_other", "tcp_node_num", 1) local udp_node_num = api.uci_get_type("global_other", "udp_node_num", 1) local socks_node_num = api.uci_get_type("global_other", "socks_node_num", 1) local status_show_check_port = api.uci_get_type("global_other", "status_show_check_port", 0) local status_show_ip111 = api.uci_get_type("global_other", "status_show_ip111", 0) -%>
<%:Running Status%>

TCP
<%:NOT RUNNING%>


UDP
<%:NOT RUNNING%>

Socks
<%:NOT RUNNING%>

DNS
<%:NOT RUNNING%>

<%:Load Balancing%>
<%:NOT RUNNING%>

Kcptun
<%:NOT RUNNING%>

<%:Baidu Connection%>
<%:Touch Check%>

<%:Google Connection%>
<%:Touch Check%>

<% if tonumber(status_show_check_port) == 1 then %>

<%:Node Check%>
<%:Touch Check%>

<% end %> <% if tonumber(status_show_ip111) == 1 then %>

IP111.cn
<%:Touch Check%>

<% end %>