From 408db1a9f4ca704e7ae177dffdb4a14d3e23fb1f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 17 Sep 2017 22:10:17 +0100 Subject: [PATCH] added external IP to debug info --- lgsm/functions/command_debug.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lgsm/functions/command_debug.sh b/lgsm/functions/command_debug.sh index 0ff223a50..29b2ec77f 100644 --- a/lgsm/functions/command_debug.sh +++ b/lgsm/functions/command_debug.sh @@ -52,6 +52,12 @@ if [ -n "${glibcrequired}" ]; then fi # Server ip echo -e "${blue}Server IP:\t${default}${ip}:${port}" +# External server ip +if [ -n "${extip}" ]; then + if [ "${ip}" != "${extip}" ]; then + echo -e "${blue}Internet IP:\t${default}${extip}:${port}" + fi +fi # Server password if [ -n "${serverpassword}" ]; then echo -e "${blue}Server password:\t${default}${serverpassword}"