Return status 1 if auth fail

This commit is contained in:
Simple-Tracker 2024-04-08 22:30:24 +08:00
parent 4362b0ec15
commit 8ccf51e3e7

View File

@ -1,6 +1,7 @@
package main
import (
"os"
"net"
"time"
"strings"
@ -487,7 +488,7 @@ func RunConsole() {
}
if !LoadInitConfig(true) {
Log("RunConsole", GetLangText("RunConsole_AuthFailed"), true)
return
os.Exit(1)
}
Log("RunConsole", GetLangText("RunConsole_ProgramHasStarted"), true)
loopTicker := time.NewTicker(time.Duration(config.Interval) * time.Second)