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

holepuncher: pass address function in constructor #2979

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Sep 25, 2024

fixes: #2966

Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

A couple of nits. I would like to see a test for the issue here

p2p/protocol/holepunch/svc.go Outdated Show resolved Hide resolved
p2p/protocol/holepunch/util.go Outdated Show resolved Hide resolved
@MarcoPolo MarcoPolo merged commit ec8ebaa into sukun/addr-factory Oct 16, 2024
9 of 11 checks passed
MarcoPolo added a commit that referenced this pull request Oct 17, 2024
* autonat: fix interaction with autorelay

* Fix race in test

* Use deadline from context if available for DialBack

* Return hasNewAddrs correctly

* nit: cleanup contains check

* Shuffle peers

* nits

* Change comment to indicate the bug

* holepuncher: pass address function in constructor (#2979)

* holepunch: pass address function in constructor

* nit

* Remove getPublicAddrs

---------

Co-authored-by: Marco Munizaga <git@marcopolo.io>

* Make a copy of the multiaddr slice in Addrs()

---------

Co-authored-by: Marco Munizaga <git@marcopolo.io>
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