[client] Fix freebsd default routes (#3230)

This commit is contained in:
Viktor Liu
2025-01-23 16:57:11 +01:00
committed by GitHub
parent 69f48db0a3
commit aafa9c67fc
3 changed files with 5 additions and 15 deletions

View File

@@ -33,8 +33,6 @@ type TunKernelDevice struct {
}
func NewKernelDevice(name string, address WGAddress, wgPort int, key string, mtu int, transportNet transport.Net) *TunKernelDevice {
checkUser()
ctx, cancel := context.WithCancel(context.Background())
return &TunKernelDevice{
ctx: ctx,