Skip to content

Commit

Permalink
Fix bug where bootstrap ack was handled incorrectly (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
devonh authored Feb 23, 2022
1 parent 3512655 commit 0f0afd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/state_snek.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func (s *state) _handleBootstrapACK(from *peer, rx *types.Frame) error {
case asc != nil && asc.valid():
// We already have an ascending entry and it hasn't expired yet.
switch {
case asc.PublicKey == rx.SourceKey && bootstrapACK.PathID != asc.PathID:
case asc.Origin == rx.SourceKey && bootstrapACK.PathID != asc.PathID:
// We've received another bootstrap ACK from our direct ascending node.
// Just refresh the record and then send a new path setup message to
// that node.
Expand Down

0 comments on commit 0f0afd1

Please sign in to comment.