mirror of
https://github.com/fosrl/newt.git
synced 2026-02-08 05:56:40 +00:00
Clean up operation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user