fix: interface structs do not copy correctly

This commit is contained in:
wwqgtxx committed 2026-05-23 11:58:21 +08:00
1 parent f69331f45f
commit 03e1f44921
1 file changed
+8 -2
+8 -2
View File
@@ -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,
})
}