Clean up operation

This commit is contained in:
Owen
2025-07-27 14:50:11 -07:00
parent 88f1335cff
commit ae7e2a1055
4 changed files with 29 additions and 9 deletions

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