mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-10-05 08:37:03 +08:00
Add DefaultInterfaceMonitor.MyInterface
This commit is contained in:
@@ -264,7 +264,7 @@ func (t *NativeTun) Start() error {
|
||||
if t.options.FileDescriptor != 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
t.options.InterfaceMonitor.RegisterMyInterface(t.options.Name)
|
||||
tunLink, err := netlink.LinkByName(t.options.Name)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user