Repository navigation
fix(dashmate): send the port check from the node's own IP - #6407
Conversation
mnowatch.org answers INVALID_IP when the request comes from an address other than validateIp. On a host with several IPv4 addresses the request left from the primary one, so nodes on additional IPs looked unreachable. Bind the request to the node's IP when that address is on a non-loopback IPv4 interface of the host; otherwise leave it as before. Fixes dashpay#5976 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
✅ Final review complete — no blockers (commit 8bad001) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The change binds mnowatch port-check requests to the configured external IPv4 address only when that address is assigned to a non-loopback interface on the host, while preserving the existing unbound behavior for NAT, container, loopback, IPv6, and missing-IP cases. The relevant unit tests cover each branch. CodeRabbit and other completed checks passed; the PastaClaw review and PR Hygiene checks remain in progress.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.2-sol(effort low) — This is a small, well-contained dashmate networking change that conditionally binds an outbound IPv4 request to a host interface, with focused unit tests and no critical protocol, funds, cryptography, or storage impact. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 99% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort medium); agentphase2-reviewer
|
Bots are done — your move: post |
|
/self-reviewed |
|
Ready for review — |
Issue being fixed or feature implemented
Fixes #5976.
dashmate status core,dashmate status platformanddashmate doctorreportINVALID_IPfor a node whoseexternalIpis not the host's primary address. mnowatch.org comparesvalidateIpwith the address the request comes from, and the request leaves from the default route's source address, so every node on an additional IP looks unreachable even when its ports are open.What was done?
providers.mnowatch.checkPortStatusnow setslocalAddressto the IP it validates when that address belongs to a non-loopback IPv4 interface of the host. In every other case (behind NAT, on a cloud VM with a private address, inside the helper container, or with no IP given) nothing is bound and the request leaves as before, so binding cannot fail withEADDRNOTAVAIL.Loopback and IPv6 addresses are skipped: the request is forced to IPv4 (#2100), and a request sent from a loopback address cannot reach mnowatch.org.
How Has This Been Tested?
test/unit/status/providers.spec.jscover a node IP on the host, an IP not on the host, a loopback IP and no IP.providers.spec.jspasses, 36 tests, and the first new test fails without the change.eslintis clean on both changed files.INVALID_IP; with the change, the Core P2P port, the gateway port and the Tenderdash P2P port of every node reportOPEN. The node on the primary address reportsOPENbefore and after.Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
8bad001dashmate(packages/dashmate/src/status/providers.js,packages/dashmate/test/unit/status/providers.spec.js) — ktechmidas or shumkovWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.