-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Don't hole punch if either peer is behind a Symmetric NAT #1046
Closed
aarshkshah1992
wants to merge
53
commits into
feat/hole-punching-signalling
from
feat/evt-based-hole-punching
Closed
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
78ce16b
emit NAT device type
aarshkshah1992 0b45239
unit tests
aarshkshah1992 3566bfd
emit event for NAT Device Type
aarshkshah1992 29d4987
updated deps
aarshkshah1992 5484ccb
refactor tcp-udp NAT events
aarshkshah1992 1537769
update go ver
aarshkshah1992 c2295d5
go mod tidy
aarshkshah1992 2296117
update deps
aarshkshah1992 d337499
fix multiple events
aarshkshah1992 1956fea
Implement support for simultaneous open
vyzo cfef141
updated deps
aarshkshah1992 10adf33
simultaneous connect
aarshkshah1992 ef26854
added tests
aarshkshah1992 ae61f65
added tests
aarshkshah1992 0b0b410
more testing
aarshkshah1992 90cd9bb
host changes
aarshkshah1992 2603920
test scripts
aarshkshah1992 e868d73
default listen
aarshkshah1992 431a9a6
addrs
aarshkshah1992 fa9994c
relay server
aarshkshah1992 001aa52
rela server
aarshkshah1992 14ef1ec
relay server
aarshkshah1992 450d431
relay server
aarshkshah1992 36ca4a7
addrs
aarshkshah1992 1bdb86c
testing
aarshkshah1992 1d6d07f
server code
aarshkshah1992 5ecac86
server code
aarshkshah1992 d9d7e6a
more changes
aarshkshah1992 dcf822c
upated swarm
aarshkshah1992 2ee5344
clean-up
aarshkshah1992 46ef4d8
cleaned up PR
aarshkshah1992 749086f
rebased to have NAT type event
aarshkshah1992 37141ec
better logging
aarshkshah1992 5bf6a8f
remove log
aarshkshah1992 837edb0
log connection as well
aarshkshah1992 35b7b8a
remove chatty logs
aarshkshah1992 9482582
fix go-multiaddr
aarshkshah1992 eddb65c
fix logging
aarshkshah1992 6ec9163
event driven hole punching
aarshkshah1992 d0d527c
always dial public addrs
aarshkshah1992 651ae86
address review
aarshkshah1992 9b483aa
rebased PR
aarshkshah1992 3e9dc38
fix typo
aarshkshah1992 ea96e13
fixed errs
aarshkshah1992 792ff75
fixed errs
aarshkshah1992 6efab25
save NAT type to peerstore
aarshkshah1992 00bd3a7
added a test
aarshkshah1992 48350b4
removed double init
aarshkshah1992 9267948
finished merging
aarshkshah1992 b553c16
unit tests
aarshkshah1992 f981b25
fixed races
aarshkshah1992 a3fee65
update deps due to license
ZBoIsHere 9b67b75
Merge pull request #1146 from ZBoIsHere/feat/evt-based-hole-punching-…
Stebalien File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we look at the actual event? why are we ignoring it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, where do we set the support meta-variables into the peerstore?
Shouldn't we be doing it here? Or is it handled elsewhere?
I think we need a comment if this is correct as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vyzo
Our local vars are set in the peerstore in
basic_host.go
during initialisation of the Host & updated in the obs addr manager.Remote vars are set in the peerstore by Identify.
Both changes are included in this PR. I've added a comment.