From 469be849f051f0358e0ecb27fe8e31fe7bd54f34 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 5 Oct 2025 08:51:58 +0200 Subject: [PATCH] fix: Gateway --- src/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index c3fa8ef..816eb7b 100644 --- a/src/install.sh +++ b/src/install.sh @@ -756,8 +756,8 @@ updateXML() { local language="$2" local culture region user admin pass keyboard - if [ -n "${VM_NET_IP:-}" ]; then - sed -i "s/ 20.20.20.1 / ${VM_NET_IP%.*}.1 /g" "$asset" + if [ -n "${VM_NET_GATEWAY:-}" ]; then + sed -i "s/ 20.20.20.1 / $VM_NET_GATEWAY /g" "$asset" fi [ -z "$HEIGHT" ] && HEIGHT="720"