Skip to content

Commit

Permalink
Added an extra check in the node controller
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmyt committed Apr 6, 2023
1 parent 94f6f20 commit 8b76f60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/controller/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ module.exports.checkNode = async (url, password) => {

if (api === "INVALID_URL" || api.status !== 200) return "INVALID_URL";

if (!api.data.ping) return "INVALID_URL";

if (api.data.viewMode) return "PASSWORD_REQUIRED";

return "NODE_VALID";
Expand Down

0 comments on commit 8b76f60

Please sign in to comment.