* Add boilerplate for tailscale ping
* tailscale initial commit draft
* Refactor TailscalePing & better error handling
Split check function into two methods and added async/await syntax for readability/modularity
Switched to promise-based error handling (takes into account different types of error such as "Execution error", "Error in output", "no matching peer", and "is local Tailscale IP") and throws them as JavaScript errors.
* Minor update
* minor update (again)
* Update server/monitor-types/tailscale-ping.js
Co-authored-by: Frank Elsinga <[email protected]>
* Update server/monitor-types/tailscale-ping.js
Co-authored-by: Frank Elsinga <[email protected]>
* Update server/monitor-types/tailscale-ping.js
Co-authored-by: Frank Elsinga <[email protected]>
* Update server/monitor-types/tailscale-ping.js
Co-authored-by: Frank Elsinga <[email protected]>
* timeout revision
* JSDoc
* Removed long explainers
* eslint tailscale-ping.js --fix
* reran eslint
* Fix: Use hostname rather than url
* Fixed NaN on monitor interval
now interval value is correctly passed to runTailscalePing
* Add warning message
---------
Co-authored-by: Louis Lam <[email protected]>
Co-authored-by: Frank Elsinga <[email protected]>