From 8275531161f35ca05b78136d98ea3f7497a70b65 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 31 Mar 2026 23:57:25 +0200 Subject: [PATCH] fix(build): skip empty gateway value in network config (#13442) When var_gateway is set to an empty string, the resulting gw= token in the comma-separated network string causes pct create to fail with a 'missing key in comma-separated list property' error. Closes #13421 --- misc/build.func | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/build.func b/misc/build.func index 427360589..3db6c7615 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3530,6 +3530,7 @@ build_container() { # Gateway if [[ -n "$GATE" ]]; then case "$GATE" in + ,gw=) ;; ,gw=*) NET_STRING+="$GATE" ;; *) NET_STRING+=",gw=$GATE" ;; esac