From 874eeddf96da5839549ff0e17f3ecf531a5de5af Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Thu, 1 Jun 2023 18:19:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E9=81=97=E6=BC=8F?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- internal/controllers/guardian.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7e49512..c3c3463 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ /*.bat /*.log /autoLogin* -/BitSrunLoginGo* \ No newline at end of file +/BitSrunLoginGo* +/build \ No newline at end of file diff --git a/internal/controllers/guardian.go b/internal/controllers/guardian.go index 5616157..53cb223 100644 --- a/internal/controllers/guardian.go +++ b/internal/controllers/guardian.go @@ -34,7 +34,7 @@ func Guardian() { log.Errorln("登录出错: ", e) } } else { //多网卡 - interfaces, e := tools.GetInterfaceAddr() + interfaces, e := tools.GetInterfaceAddr(global.Config.Settings.Basic.Interfaces) if e == nil { for _, eth := range interfaces { log.Debugf("使用 %s 网口登录 ", eth.Name)