FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add stun server for ip discovery and flag stun by r4f4ss · Pull Request #181 · optimism-java/shisui · GitHub

Add stun server for ip discovery and flag stun - #181

Merged
r4f4ss merged 3 commits into
optimism-java:portalfrom
r4f4ss:stun
Oct 5, 2024
Merged

Add stun server for ip discovery and flag stun#181
r4f4ss merged 3 commits into
optimism-java:portalfrom
r4f4ss:stun

Conversation

r4f4ss commented Oct 4, 2024

Copy link
Copy Markdown

fix #176

new usage (reference usage):

$shisui --nat stun

or

$shisui --nat stun:<addr>

r4f4ss requested a review from fearlessfe October 4, 2024 04:28

Copy link
Copy Markdown
Member

@r4f4ss (nit) Could this feature have a test?

fearlessfe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It just create a STUN{}, It should be a place to get the real IP and set to the localNode

r4f4ss commented Oct 4, 2024

Copy link
Copy Markdown
Author

It just create a STUN{}, It should be a place to get the real IP and set to the localNode

Added function main.doPortMapping that set address and port for localNode, reference implementation from:

func doPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) *net.UDPAddr {

r4f4ss requested a review from fearlessfe October 5, 2024 01:48
r4f4ss merged commit 8e8f85a into optimism-java:portal Oct 5, 2024
This file contains hidden or 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
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.

add stun for p2p network

3 participants


Back | FazBrowse Home | New Git URL