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

feat(dashmate): check port reachability on setup #1283

Closed
wants to merge 8 commits into from

Conversation

pshenmic
Copy link
Collaborator

@pshenmic pshenmic commented Aug 1, 2023

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@pshenmic pshenmic marked this pull request as draft August 1, 2023 13:21
@pshenmic pshenmic changed the base branch from v0.25-dev to master August 1, 2023 14:53
@pshenmic pshenmic force-pushed the feat/dashmate-reachability branch from 8798c21 to 420984b Compare October 19, 2023 13:18
@pshenmic pshenmic self-assigned this Oct 19, 2023
const publicIp = require('public-ip');
const wait = require('./wait');

async function resolvePublicIpV4() {
Copy link
Member

Choose a reason for hiding this comment

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

We should use it here as well


async function resolvePublicIpV4() {
return Promise.race([
publicIp.v4().catch(() => null),
Copy link
Member

Choose a reason for hiding this comment

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

We need to check both external IP + port

@@ -141,6 +145,25 @@ function setupRegularPresetTaskFactory(
enabled: (ctx) => ctx.isMasternodeRegistered || ctx.nodeType === NODE_TYPE_FULLNODE,
task: () => configureNodeTask(),
},
{
enabled: (ctx) => true,
Copy link
Member

Choose a reason for hiding this comment

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

You need to validate those in createIpAndPortsForm

@shumkov
Copy link
Member

shumkov commented Sep 26, 2024

@pshenmic please reopen PR if you are going to finish it

@shumkov shumkov closed this Nov 1, 2024
@shumkov shumkov deleted the feat/dashmate-reachability branch November 1, 2024 01:56
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.

2 participants