mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
Fix concurrancy problem and add +1 back
This commit is contained in:
2
main.go
2
main.go
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user