Fix wireguard

This commit is contained in:
世界
2024-12-21 14:23:51 +08:00
parent 4795ed712b
commit 2babf07f9a
3 changed files with 7 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ func (w *WireGuard) start() error {
if err != nil {
return err
}
wgDevice := device.NewDevice(w.tunDevice, bind, &device.Logger{
wgDevice := device.NewDevice(w.ctx, w.tunDevice, bind, &device.Logger{
Verbosef: func(format string, args ...interface{}) {
w.logger.Debug(fmt.Sprintf(strings.ToLower(format), args...))
},