ignore Loopback Address (LVS,DR mode)
This commit is contained in:
parent
abadb2211e
commit
35e7b9551f
@ -46,6 +46,9 @@ func Extract(addr string) (string, error) {
|
|||||||
// ignore error, interface can dissapear from system
|
// ignore error, interface can dissapear from system
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if iface.Flags&net.FlagLoopback != 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
addrs = append(addrs, ifaceAddrs...)
|
addrs = append(addrs, ifaceAddrs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user