Add DefaultInterfaceMonitor.MyInterface

This commit is contained in:
世界 2025-04-12 14:39:22 +08:00
parent 2121bc3f01
commit f57754918d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 19 additions and 2 deletions

View file

@ -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
}