platform: Uniq network interfaces

This commit is contained in:
世界
2026-01-11 17:07:31 +08:00
parent d553a761a9
commit daed4a5f2d
+3
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
}