This commit is contained in:
TenderIronh
2026-05-15 17:53:49 +08:00
parent 12393f00c5
commit 07836fc162
7 changed files with 51 additions and 12 deletions
+8
View File
@@ -135,6 +135,14 @@ func GetToken(baseDir string) string {
return fmt.Sprintf("%d", gConf.Network.Token)
}
func SetToken(token string) {
n, err := strconv.ParseUint(token, 10, 64)
if err == nil && n > 0 {
gConf.setToken(n)
gConf.save()
}
}
func Stop() {
os.Exit(0)
}