luci-app-vssr: sync with upstream source

This commit is contained in:
CN_SZTL 2020-02-17 18:37:14 +08:00
parent 5fe46613d3
commit 857a452f57
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 7 additions and 5 deletions

View File

@ -132,10 +132,10 @@ define Package/luci-app-vssr
+PACKAGE_$(PKG_NAME)_INCLUDE_ipt2socks:ipt2socks \
+PACKAGE_$(PKG_NAME)_INCLUDE_dnscrypt_proxy:dnscrypt-proxy-full \
+PACKAGE_$(PKG_NAME)_INCLUDE_dnsforwarder:dnsforwarder \
+PACKAGE_$(PKG_NAME)_INCLUDE_ChinaDNS:ChinaDNS \
+PACKAGE_$(PKG_NAME)_INCLUDE_ChinaDNS:openwrt_chinadns \
+PACKAGE_$(PKG_NAME)_INCLUDE_haproxy:haproxy \
+PACKAGE_$(PKG_NAME)_INCLUDE_privoxy:privoxy \
+PACKAGE_$(PKG_NAME)_INCLUDE_udpspeeder:udpspeeder \
+PACKAGE_$(PKG_NAME)_INCLUDE_udpspeeder:speederv2-tunnel \
+PACKAGE_$(PKG_NAME)_INCLUDE_udp2raw-tunnel:udp2raw-tunnel \
+PACKAGE_$(PKG_NAME)_INCLUDE_simple-obfs:simple-obfs \
+PACKAGE_$(PKG_NAME)_INCLUDE_simple-obfs-server:simple-obfs-server \

View File

@ -233,4 +233,6 @@ o = s:option(Button,"check_port",translate("Check Server Port"))
o.template = "vssr/checkport"
o.value =translate("No Check")
m:section(SimpleSection).template = "vssr/status2"
return m

View File

@ -7,7 +7,7 @@
//<![CDATA[
var pings = document.getElementsByClassName('pingtime');
for(var i = 0; i < pings.length; i++) {
XHR.get('/cgi-bin/luci/admin/vpn/greatwall/ping', {
XHR.get('/cgi-bin/luci/admin/vpn/vssr/ping', {
index: i,
domain: pings[i].getAttribute("hint")
},
@ -15,7 +15,7 @@
pings[result.index].innerHTML = (result.ping ? "<b><font color=green>"+result.ping+"</font></b> ms" : "<b><font color=red> 检测失败 </font></b>");
}
);
XHR.poll(10,'/cgi-bin/luci/admin/vpn/greatwall/ping',{
XHR.poll(10,'/cgi-bin/luci/admin/vpn/vssr/ping',{
index: i,
domain: pings[i].getAttribute("hint")
},
@ -25,4 +25,4 @@
);
}
//]]>
</script>
</script>