-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
8798c21
to
420984b
Compare
const publicIp = require('public-ip'); | ||
const wait = require('./wait'); | ||
|
||
async function resolvePublicIpV4() { |
There was a problem hiding this comment.
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
initialIp = await Promise.race([ |
|
||
async function resolvePublicIpV4() { | ||
return Promise.race([ | ||
publicIp.v4().catch(() => null), |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
@pshenmic please reopen PR if you are going to finish it |
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only