From 3a430e42d9a68ae33c64686d30b21e099104be75 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 9 Sep 2020 20:57:38 +0100 Subject: [PATCH] bug --- lgsm/functions/check_ip.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/check_ip.sh b/lgsm/functions/check_ip.sh index 4ea56a9fa..183ce1755 100644 --- a/lgsm/functions/check_ip.sh +++ b/lgsm/functions/check_ip.sh @@ -17,10 +17,11 @@ else fi getip=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|sort -u|grep -v 127.0.0) getipwc=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|sort -u|grep -vc 127.0.0) -# Check if server has m ultiple IP addresses + +# Check if server has multiple IP addresses # If the IP variable has been set by user. -if [ -n "${ip}" ]; then +if [ -n "${ip}" ]||[ "${ip}" != "0.0.0.0" ]; then queryips=( "${ip}" ) # If game server IP is set IP address in game config. elif [ -n "${configip}" ]; then