Add DefaultInterfaceMonitor.MyInterface
This commit is contained in:
parent
2121bc3f01
commit
f57754918d
5 changed files with 19 additions and 2 deletions
|
|
@ -163,6 +163,7 @@ func (t *NativeTun) Name() (string, error) {
|
|||
}
|
||||
|
||||
func (t *NativeTun) Start() error {
|
||||
t.options.InterfaceMonitor.RegisterMyInterface(t.options.Name)
|
||||
if !t.options.AutoRoute {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue