modified: frps.toml

modified:   opserver.exe
	modified:   opserver_linux_amd64
	modified:   static/index.html
This commit is contained in:
eatfishfish 2024-07-01 19:59:09 +08:00
parent 2224381508
commit 513711a901
4 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# frps.toml
bindPort = 7888
vhostHTTPPort = 1201
tcpmuxHTTPConnectPort = 5888
auth.method = "token"
auth.token = "password"

Binary file not shown.

Binary file not shown.

View File

@ -141,12 +141,22 @@
function showLocation() {
did = localStorage.getItem("dongleId");
url = "/replaygps/"+String(did)+"/"
var date = new Date();
url = url+date.getFullYear()+"-"+(date.getMonth() + 1).toString().padStart(2,'0')+"-"+date.getDate();
console.log(url)
window.location = url;
}
function showSentry() {
did = localStorage.getItem("dongleId");
url = "FRP_SVR/"+String(did)
console.log(url)
window.location = url;
}
function recordOperationTime(){
strSec = Math.floor(Date.now() / 1000)
localStorage.setItem("operationTime", strSec)
@ -195,6 +205,8 @@
<input type="button" value="Vod" class="button button1" onclick = "showVOD();" />
&nbsp;&nbsp;
<input type="button" value="Location" class="button button1" onclick = "showLocation();" />
&nbsp;&nbsp;
<input type="button" value="Sentry" class="button button1" onclick = "showSentry();" />
</br></br>
<input type="button" value="Log" class="button button1" onclick = "showlog();" />
&nbsp;&nbsp;