feat: 变更解析方式,打包Srun请求包

This commit is contained in:
Mmx233
2022-03-11 17:47:13 +08:00
parent 371e774cc1
commit 0613dc6311
13 changed files with 165 additions and 188 deletions

View File

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