Clean up operation

This commit is contained in:
Owen
2025-07-28 12:02:09 -07:00
parent 88f1335cff
commit ae7e2a1055
4 changed files with 29 additions and 9 deletions
+5
View File
@@ -347,6 +347,11 @@ func (s *WireGuardService) Close(rm bool) {
}
func (s *WireGuardService) StartHolepunch(serverPubKey string, endpoint string) {
// if the device is already created dont start a new holepunch
if s.device != nil {
return
}
s.serverPubKey = serverPubKey
s.holePunchEndpoint = endpoint