diff --git a/defaults.inc b/defaults.inc index fab6486..70dcacc 100755 --- a/defaults.inc +++ b/defaults.inc @@ -2,7 +2,7 @@ action="$1" FOLDER='/opt/idssys/linupx' -VERS='6.60.19-11162023' +VERS='6.60.20-11182023' IPERFVER="3.15" diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 9f5d1ac..1b20afa 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -769,8 +769,7 @@ IPV6_DISABLED=yes echo -en "${idsCL[LightYellow]}Domain (optional): ${idsCL[Default]}" read -e DOMAIN echo - REPIP=`hostname -I` - REPIP=${REPIP/ /} + REPIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) echo -en "${idsCL[LightYellow]}IP Address [Current='${idsCL[White]}${REPIP}${idsCL[LightYellow]}']: ${idsCL[Default]}" read -e IPADDRESS [ "${IPADDRESS}" == "" ] && IPADDRESS=${REPIP}