fix: Workaround UDP port conflicts when another local process binds 53 (#414)

This commit is contained in:
/gray
2024-01-11 21:33:16 +08:00
committed by GitHub
parent f9bba2498e
commit 0f8277b5a4
4 changed files with 343 additions and 6 deletions

View File

@ -268,10 +268,11 @@ loop:
break loop
}
}
defer os.Remove(PidFilePath)
defer control.GetDaeNetns().Close()
if e := c.Close(); e != nil {
return fmt.Errorf("close control plane: %w", e)
}
_ = os.Remove(PidFilePath)
return nil
}