mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 12:46:47 +00:00
chore: ignore interfaces not with FlagUp in local interface finding
This commit is contained in:
1 parent
efc7abc6e0
commit
d55b047125
1 file changed
+3
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user