From 03e1f44921a6737015b772c6a81e8fb4d548bb20 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sat, 23 May 2026 11:58:21 +0800 Subject: [PATCH] fix: interface structs do not copy correctly --- adapter/outbound/tailscale.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/adapter/outbound/tailscale.go b/adapter/outbound/tailscale.go index 0e3b9a3f0..0dabfd7f8 100644 --- a/adapter/outbound/tailscale.go +++ b/adapter/outbound/tailscale.go @@ -84,8 +84,14 @@ func init() { continue } nif = append(nif, netmon.Interface{ - Interface: &iff, - AltAddrs: addrs, + Interface: &net.Interface{ + Index: iff.Index, + MTU: iff.MTU, + Name: iff.Name, + HardwareAddr: iff.HardwareAddr, + Flags: iff.Flags, + }, + AltAddrs: addrs, }) }