$(hostname -I | awk '{print $1}' | head -n 1)

This commit is contained in:
fred 2023-04-16 23:37:01 +02:00
parent 7be3a4d6c2
commit 12752efa91
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ isLAN=$(route -n |awk '$1 == "0.0.0.0" {print $2}' | grep -E "/(^127\.)|(^192\.1
if [[ $isLAN ]]; then
HNAME="http://g1billet.localhost"
else
HNAME="http://vmi891906.contaboserver.net"
HNAME="http://$(hostname -I | awk '{print $1}' | head -n 1)"
fi
RNAME="$HNAME:33102"