engine: mac: fallback properly
This commit is contained in:
@@ -164,7 +164,7 @@ func (r *sourceMACResolver) refreshARPCache(now time.Time) {
|
||||
|
||||
func (r *sourceMACResolver) refreshNDPCache(now time.Time) {
|
||||
m, ok := readNeighborCacheFile("/proc/net/ndisc_cache")
|
||||
if !ok {
|
||||
if !ok || len(m) == 0 {
|
||||
// Fallback for environments without /proc/net/ndisc_cache.
|
||||
m = readIPv6NeighCommand()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user