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

@sukunrt sukunrt force-pushed the sukun/holepunch-addrs branch 2 times, most recently from 2229f44 to 7b21170 Compare September 25, 2024 13:00
@sukunrt sukunrt force-pushed the sukun/holepunch-addrs branch from 7b21170 to 8787ba7 Compare September 25, 2024 14:09
@sukunrt sukunrt force-pushed the sukun/holepunch-addrs branch from 8787ba7 to 89523cb Compare September 25, 2024 16:48
@sukunrt sukunrt requested a review from MarcoPolo September 30, 2024 16:18
@MarcoPolo MarcoPolo mentioned this pull request Oct 9, 2024
30 tasks
@MarcoPolo MarcoPolo force-pushed the sukun/holepunch-addrs branch from 89523cb to bea3bdf Compare October 16, 2024 19:27
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