Skip to content

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

.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