|
@ -19,14 +19,14 @@ getip=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\ |
|
|
getipwc=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|sort -u|grep -vc 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 m ultiple IP addresses |
|
|
|
|
|
|
|
|
|
|
|
# If the IP variable has been set by user. |
|
|
|
|
|
if [ -n "${ip}" ]; then |
|
|
|
|
|
queryips=( "${ip}" ) |
|
|
# If game server IP is set IP address in game config. |
|
|
# If game server IP is set IP address in game config. |
|
|
if [ -n "${configip}" ]; then |
|
|
elif [ -n "${configip}" ]; then |
|
|
queryips=( "${configip}" ) |
|
|
queryips=( "${configip}" ) |
|
|
|
|
|
ip="${configip}" |
|
|
# If IP has not been set by user. |
|
|
# If IP has not been set by user. |
|
|
elif [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]&&[ -z "${ip}" ]; then |
|
|
|
|
|
queryips=( $(echo "${getip}") ) |
|
|
|
|
|
# If the IP variable has been set by user. |
|
|
|
|
|
else |
|
|
else |
|
|
queryips=( "${ip}" ) |
|
|
queryips=( $(echo "${getip}") ) |
|
|
fi |
|
|
fi |
|
|