Skip to content

Commit

Permalink
refactor: 💡 hide ip field when no ip addr detected
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Oct 20, 2023
1 parent c4bf16c commit c52522f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/node_details
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ fi
echo "⚠️ WARNING: If this issue persists, report to us via our discord. Thank you!"

exit 1
elif [[ "$ipAddr" == "" ]]; then
echo "⚠️ WARNING: Couldn't find the server IP address for some reason. You have to check it check manually or try again later!"
fi

echo
Expand All @@ -184,7 +186,10 @@ fi
echo
echo "The Node Public Key is $nodePubKey"
echo "The Consensus Public Key is $consensusPubKey"
echo "The Node Server IP address is $ipAddr"

if validateIpAddress "$ipAddr"; then
echo "The Node Server IP address is $ipAddr"
fi

if [[ ! "$hasStake" -eq "" ]]; then
flkAmount=$(flkMinorUnitToFlk "$hasStake")
Expand Down

0 comments on commit c52522f

Please sign in to comment.