polar
polar copied to clipboard
feat: add custom baseport for nodes
This commit implements the feature that lets users set custom base ports for their nodes to avoid having port conflicts with other applications running on the same machine.
Closes #533
Description
I added a settings page with input fields to set the base ports and then save. The custom base ports persist in the settings.json file and are loaded whenever polar starts. If a node, for example, LND
does not have a custom port set, the defaults from constant.ts are used
Steps to Test
- On the top navbar, locate the
Network Setting
tab and click on it. - The settings page appears, fill in the custom ports and click on save.
- Create a network and check the ports of your nodes
Screenshots
Node Alice
Node Bob