platform: Uniq network interfaces

This commit is contained in:
世界
2026-01-11 17:07:31 +08:00
parent 8d88c6532f
commit e0f1cdf464

View File

@@ -126,6 +126,9 @@ func (w *platformInterfaceWrapper) NetworkInterfaces() ([]adapter.NetworkInterfa
Constrained: isDefault && w.isConstrained,
})
}
interfaces = common.UniqBy(interfaces, func(it adapter.NetworkInterface) string {
return it.Name
})
return interfaces, nil
}