Minor fixes

This commit is contained in:
世界 2023-04-05 21:41:06 +08:00
parent 8b64446274
commit afd3464216
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 3 additions and 2 deletions

View file

@ -179,5 +179,6 @@ func (w *WireGuard) Close() error {
if w.device != nil {
w.device.Close()
}
return common.Close(w.tunDevice)
w.tunDevice.Close()
return nil
}