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

Store and forward the original peering port in keepalive messages #3878

Merged
merged 2 commits into from Jul 26, 2022

Conversation

pwojcikdev
Copy link
Contributor

When sending keepalive messages, the node sends endpoints of peers connected to us. Right now it will send the endpoint to which the socket is connected, but that could be a random ephemeral port. (It works now because we always establish two connections per peer). This PR changes this behaviour to instead forward the peering port that was originally announced to us.

@pwojcikdev pwojcikdev merged commit 97c809e into nanocurrency:develop Jul 26, 2022
@pwojcikdev pwojcikdev deleted the prs/store-peering-port branch July 26, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants