feat(sys): add self-check functionality for system settings and frpc binary

This commit is contained in:
2026-05-07 21:07:16 +08:00
parent 44195c9f26
commit 9ffb4263cf
5 changed files with 115 additions and 14 deletions
+6
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"net/http"
"strconv"
"os"
"time"
"strings"
@@ -161,3 +162,8 @@ func GetCmdType(source string) string {
func GetCmdParams(source string, param string) string {
return GetTextMiddle(source, "<"+param+">", "</"+param+">")
}
func IsFileExist(filePath string) bool {
_, err := os.Stat(filePath)
return !os.IsNotExist(err)
}