chore: 添加网卡相关警告日志
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user