Feat: (Health check) Check alt_ip if web domain is not accessible#768
Feat: (Health check) Check alt_ip if web domain is not accessible#768
alt_ip if web domain is not accessible#768Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Deployed to https://msg-adamant-pr-768.surge.sh 🚀 |
|
The logic becomes more complex, it'd be good to write tests for different use-cases. |
|
@S-FrontendDev @bludnic |
|
Connection selection and persistence rules (for nodes with
Session scope: keep the selected type until page reload or until the node is toggled off/on by the user. |
…memory storage implementation
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 97 out of 98 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…-msg and pre-commit hooks
|
@cursor review |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 101 out of 102 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Successfully tore down https://msg-adamant-pr-768.surge.sh 🥲 |
Task check list
debuglevel, everything else atinfoTask description
To test this complex algorithm clearly, in the
src/config/development.jsonleave only one list with one entry.There are 3 possible cases, let's take a look at the example of ADAMANT nodes:
{ "adm": { "nodes": { "list":[ { "url": "https://debate.adamant.im", "alt_ip": "http://95.216.161.113:36666" } ] } } }{ "adm": { "nodes": { "list":[ { "url": "https://abc.adamant.im", "alt_ip": "http://95.216.161.113:36666" } ] } } }{ "adm": { "nodes": { "list":[ { "url": "https://abc.adamant.im", "alt_ip": "http://123.123.123.123:36666" } ] } } }Remember to filter out log messages and leave only
console.infoTest cases
url: tauri.adm.im
alt_ip: 154.26.159.245:36666
The application tries a health check (
api/node/status) on the domain tauri.adm.im.a) Domain is accessible
This is not a node ban — the node may be temporarily offline.
b) Domain is not accessible
api/node/status) on IP 154.26.159.245:36666.This is not a node ban — the node may be temporarily offline.
c) Neither domain nor IP is accessible