Fix interface ignore list (#352)

This commit is contained in:
Misha Bragin
2022-06-05 14:43:13 +02:00
committed by GitHub
parent d005cd32b0
commit e7b43253b0
3 changed files with 4 additions and 12 deletions

View File

@ -92,6 +92,7 @@ func interfaceFilter(blackList []string) func(string) bool {
return func(iFace string) bool {
for _, s := range blackList {
if strings.HasPrefix(iFace, s) {
log.Debugf("ignoring interface %s - it is not allowed", iFace)
return false
}
}