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

Adding MapPort function to BasicHost #1

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Adding MapPort function to BasicHost #1

merged 3 commits into from
Oct 30, 2023

Conversation

hottestchilipepper
Copy link
Contributor

The MapPort function can be used when some ports outside go-libp2p need outbound ports for NAT.

Comment on lines 163 to 167

if oldport != 0 {
log.Info("Skipping port mapping, already mapped")
return
}
Copy link
Collaborator

@sb-anderson sb-anderson Oct 30, 2023

Choose a reason for hiding this comment

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

Why this part is added?

@sb-anderson sb-anderson merged commit bbb67b8 into main Oct 30, 2023
17 checks passed
@sb-anderson sb-anderson deleted the mapport branch October 30, 2023 10:05
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