mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 07:46:47 +00:00
fix: interface structs do not copy correctly
This commit is contained in:
1 parent
f69331f45f
commit
03e1f44921
1 file changed
+8
-2
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user