Skip to content

Commit

Permalink
Add logging for map state
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 18, 2024
1 parent 07c7996 commit c00e515
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/router/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func Setup(errorChan chan<- error, iptables bool) (err error) {
}

log.Println(device.Address, "b endpoint:", ourPeerAddresses[device.Address], "r endpoint: ", p.Endpoint)
log.Println(device.Address, "m ok", ok, " end nil: ", p.Endpoint == nil)

// If the peer endpoint has become empty (due to peer roaming) or if we dont have a record of it, set the map
if _, ok := ourPeerAddresses[device.Address]; !ok || p.Endpoint == nil {
Expand Down

0 comments on commit c00e515

Please sign in to comment.