From c52522f057a6169c38f23af5a9e8c7d2ec2b5c9d Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Fri, 20 Oct 2023 20:41:25 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20hide=20ip=20field=20?= =?UTF-8?q?when=20no=20ip=20addr=20detected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/node_details | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/node_details b/scripts/node_details index 3210e07..ae574f4 100644 --- a/scripts/node_details +++ b/scripts/node_details @@ -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 @@ -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")