From 12752efa91769db315376410d3c25f560470d76b Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 16 Apr 2023 23:37:01 +0200 Subject: [PATCH] $(hostname -I | awk '{print $1}' | head -n 1) --- G1BILLETS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G1BILLETS.sh b/G1BILLETS.sh index caf11e5..5f0b0dd 100755 --- a/G1BILLETS.sh +++ b/G1BILLETS.sh @@ -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"