feat: 支持跳过网络检查

This commit is contained in:
Mmx233
2022-01-21 22:44:35 +08:00
parent ce0c178e91
commit 94f532c624
2 changed files with 6 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ func main() {
} else {
//单次登录模式
if global.Config.Settings.Basic.Interfaces == "" { //单网卡
if err := controllers.Login(true, false, nil); err != nil {
if err := controllers.Login(true, global.Config.Settings.Basic.SkipNetCheck, nil); err != nil {
util.Log.Println("运行出错,状态异常")
if global.Config.Settings.Basic.DemoMode {
util.Log.Fatalln(err)
@@ -36,7 +36,7 @@ func main() {
}
for _, eth := range interfaces {
util.Log.Println(eth.Name)
if err := controllers.Login(true, false, eth.Addr); err != nil {
if err := controllers.Login(true, global.Config.Settings.Basic.SkipNetCheck, eth.Addr); err != nil {
util.Log.Println(eth.Name + "运行出错,状态异常")
util.Log.Println(err)
}