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

UPNP Support - Minor fixes #6

Merged
merged 7 commits into from
Jul 3, 2019
Merged

Conversation

mbaxter
Copy link

@mbaxter mbaxter commented Jul 3, 2019

PR description

Fix a few small issues:

  • DefaultP2PNetwork
    • Make sure NAT setup is handled before enode url is constructed
    • Request UDP port forwarding for discovery service
    • Add a test
  • Request port forwarding in JsonRpcHttpService after port is fully resolved
  • Fix some minor style issues in UpnpNatManager
    • Use final variables where possible
    • Use Optional over nullable values
  • Implement shutdown method in PantheonUpnpServiceConfiguration
  • Make package names consistent with directory structure
  • Remove some unnecessary dependencies

@@ -378,7 +378,7 @@ private void configureNatEnvironment() {
.get()
.requestPortForward(
this.config.getDiscovery().getBindPort(),
UpnpNatManager.Protocol.TCP,
UpnpNatManager.Protocol.UDP,
Copy link

Choose a reason for hiding this comment

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

Do we need both TCP and UDP or is discovery UDP only?

Copy link
Author

Choose a reason for hiding this comment

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

Discovery is UDP only. There's another request for rlpx TCP port below.

@notlesh notlesh merged commit e461e69 into notlesh:upnp_support Jul 3, 2019
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.

3 participants