feat:允许设定首次登录失败后是否进入守护

This commit is contained in:
Mmx
2021-07-31 18:29:50 +08:00
parent a6be2fa234
commit b148eea874
6 changed files with 37 additions and 40 deletions

View File

@@ -9,7 +9,6 @@ import (
"fmt"
"io"
"net"
"os"
"regexp"
"time"
)
@@ -51,17 +50,6 @@ func Sha1(content string) string {
return fmt.Sprintf("%x\n", bs)
}
func ErrHandler(err error) {
if !global.Status.Output {
return
}
Log.Println("运行出错,状态异常")
if global.Config.Settings.DemoMode {
Log.Fatalln(err)
}
os.Exit(1)
}
func NetDailEr() func(ctx context.Context, network, address string) (net.Conn, error) {
return func(ctx context.Context, network, address string) (net.Conn, error) {
d := net.Dialer{