From 0f13d667ab8c48285702f4efabbb3736e4640234 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sun, 18 Sep 2022 15:26:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E7=BD=91=E5=8D=A1?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E8=AD=A6=E5=91=8A=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/eth.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/util/eth.go b/util/eth.go index fa24b54..0f0bf80 100644 --- a/util/eth.go +++ b/util/eth.go @@ -42,8 +42,16 @@ func GetInterfaceAddr() ([]srunModels.Eth, error) { break } } + } else { + log.Debugf("网卡 %s 不匹配", eth.Name) } } + log.Debugln("有效匹配网卡:", result) + + if len(result) == 0 { + log.Warnln("没有扫描到有效匹配网卡") + } + return result, nil }