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 comment on Decapsulate #181

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Fix comment on Decapsulate #181

merged 2 commits into from
Sep 8, 2022

Conversation

MarcoPolo
Copy link
Contributor

This comment was wrong.

//
// /ip4/1.2.3.4/tcp/80 decapsulate /ip4/1.2.3.4 = /tcp/80
// /ip4/1.2.3.4/tcp/80 decapsulate /tcp/80 = /ip4/1.2.3.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also document what happens if you try to decapsulate something that's not there at the right hand side of the multiaddr (it returns nil).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should! But the behavior is /ip4/1.2.3.4/tcp/80 decapsulate /udp/80 = /ip4/1.2.3.4/tcp/80

@MarcoPolo MarcoPolo merged commit 91391e2 into master Sep 8, 2022
@MarcoPolo MarcoPolo deleted the marco/fix-comment branch September 8, 2022 15:18
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.

2 participants