Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where bootstrap ack was handled incorrectly #31

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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