Add api endpoints to jit

This commit is contained in:
Owen
2026-03-04 17:01:17 -08:00
parent 21b66fbb34
commit e7507e0837
3 changed files with 71 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ func (o *Olm) handleSync(msg websocket.WSMessage) {
logger.Info("Sync: Adding new peer for site %d", siteId)
o.holePunchManager.TriggerHolePunch()
o.holePunchManager.ResetServerHolepunchInterval() // start sending immediately again so we fill in the endpoint on the cloud
// // TODO: do we need to send the message to the cloud to add the peer that way?
// if err := o.peerManager.AddPeer(expectedSite); err != nil {