From b764db3aacc062ec0dbc7a0af12fae0a0ac55512 Mon Sep 17 00:00:00 2001 From: Noxcis Date: Thu, 1 Aug 2024 22:42:51 -0500 Subject: [PATCH] Update WG-Dash-ENV-setup.sh fixed auto server ip --- Core-Installer-Functions/WG-Dash/WG-Dash-ENV-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core-Installer-Functions/WG-Dash/WG-Dash-ENV-setup.sh b/Core-Installer-Functions/WG-Dash/WG-Dash-ENV-setup.sh index 7d77024..dc4ebbb 100644 --- a/Core-Installer-Functions/WG-Dash/WG-Dash-ENV-setup.sh +++ b/Core-Installer-Functions/WG-Dash/WG-Dash-ENV-setup.sh @@ -23,7 +23,7 @@ update_server_ip() { done if [ $timer -le 0 ] && [ "$user_activity" = false ]; then - ip=$(hostname -I | awk '{print $1}') + ip=$(curl -s ifconfig.me) export WG_DASH_SERVER_IP="$ip" fi