Skip to content

Conversation

@jvdp
Copy link
Contributor

@jvdp jvdp commented Feb 22, 2021

With this addition Mantis will try to use UPnP to open an UDP port for Kademlia / peer discovery and a TCP port for the Ethereum protocol. Can be disabled via mantis.network.automatic-port-forwarding = false (defaults to true.)

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network.


@jvdp you can click here to see the review status or cancel the code review job - or - cancel by adding [!pr] to the title of the pull request.

}

# Try automatic port forwarding via UPnP
automatic-port-forwarding = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be on by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For it to be useful, I think so. Someone who wouldn't map the ports themselves probably won't be inclined to enable this manually either, right?

Copy link
Contributor

@aakoshh aakoshh left a comment

Choose a reason for hiding this comment

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

Nice work 👍

Couple of comments about logging and repeatability.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

This looks nice and clean overall. I didn't see any issues beyond what was already pointed out.

Image of Eric E Eric E


Reviewed with ❤️ by PullRequest

Copy link
Contributor

@aakoshh aakoshh left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for persevering with me! 🏁

@jvdp jvdp merged commit 649f372 into develop Feb 25, 2021
@jvdp jvdp deleted the feature/ETCM-541-upnp-port-forwarding branch February 25, 2021 15:30
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.

4 participants