Skip to content

Commit

Permalink
Pass pointer to add wireguard peer when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed May 30, 2023
1 parent 1922d4b commit 68aef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/store_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (s *store) join(ctx context.Context, joinAddr string) error {
Endpoint: endpoint,
AllowedIPs: allowedIPs,
}
log.Info("adding wireguard peer", slog.Any("peer", wgpeer))
log.Info("adding wireguard peer", slog.Any("peer", &wgpeer))
err = s.wg.PutPeer(ctx, &wgpeer)
if err != nil {
return err
Expand Down

0 comments on commit 68aef7e

Please sign in to comment.