Fix whiptail menu loop when other interfaces are present (#11237)

This commit is contained in:
Alexander 2026-01-28 17:35:24 +01:00 committed by GitHub
parent 56e97764ac
commit cca0d9e584
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2049,6 +2049,10 @@ advanced_settings() {
"${BRIDGE_MENU_OPTIONS[@]}" \
3>&1 1>&2 2>&3); then
local bridge_test="${result:-vmbr0}"
# Skip separator entries (e.g., __other__) - re-display menu
if [[ "$bridge_test" == "__other__" || "$bridge_test" == -* ]]; then
continue
fi
if validate_bridge "$bridge_test"; then
_bridge="$bridge_test"
((STEP++))