Fix timer usage

This commit is contained in:
世界
2024-04-02 23:07:26 +08:00
parent 7e736818f0
commit 2dcc6fff6d
8 changed files with 28 additions and 25 deletions

View File

@@ -153,7 +153,7 @@ func (t *Tun) Start() error {
tunInterface tun.Tun
err error
)
monitor := taskmonitor.New(t.logger, C.DefaultStartTimeout)
monitor := taskmonitor.New(t.logger, C.StartTimeout)
monitor.Start("open tun interface")
if t.platformInterface != nil {
tunInterface, err = t.platformInterface.OpenTun(&t.tunOptions, t.platformOptions)