From e0f1cdf464ac91778335c018bc67253c9e0ac57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 11 Jan 2026 17:07:31 +0800 Subject: [PATCH] platform: Uniq network interfaces --- experimental/libbox/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/experimental/libbox/service.go b/experimental/libbox/service.go index 2d5d9be4..3a13f6d1 100644 --- a/experimental/libbox/service.go +++ b/experimental/libbox/service.go @@ -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 }