mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-13 21:48:02 +08:00
chore: ignore interfaces not with FlagUp in local interface finding
This commit is contained in:
parent
efc7abc6e0
commit
d55b047125
@ -80,6 +80,9 @@ func getCache() (*ifaceCache, error) {
|
||||
}
|
||||
cache.ifMap[iface.Name] = ifaceObj
|
||||
|
||||
if iface.Flags&net.FlagUp == 0 {
|
||||
continue // interface down
|
||||
}
|
||||
for _, prefix := range ipNets {
|
||||
cache.ifTable.Insert(prefix, ifaceObj)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user