Fix concurrancy problem and add +1 back

This commit is contained in:
Owen
2025-04-12 17:51:29 -04:00
parent 3b0eef6d60
commit 4cb31df3c8
2 changed files with 8 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ func main() {
// take the first part of the allowedIp and the port from the endpoint and put them together
monitorAddress := strings.Split(site.ServerIP, "/")[0]
monitorPeer := fmt.Sprintf("%s:%d", monitorAddress, site.ServerPort)
monitorPeer := fmt.Sprintf("%s:%d", monitorAddress, site.ServerPort+1) // +1 for the monitor port
wgConfig := &peermonitor.WireGuardConfig{
SiteID: site.SiteId,