feat: Display guest info before mode warning (#1232)

This commit is contained in:
Kroese
2026-07-07 12:21:25 +02:00
committed by GitHub
parent 8963228b1c
commit 498248f43e
+5 -4
View File
@@ -551,7 +551,7 @@ getPasst() {
# Network mode setup
# ######################################
configureDHCP() {
configureVTAP() {
local msg=""
local rc
@@ -1432,7 +1432,8 @@ html "$MSG"
if enabled "$DHCP"; then
# Configure for macvtap interface
configureDHCP || exit 20
configureVTAP || exit 20
showGuestInfo
else
@@ -1486,6 +1487,8 @@ else
fi
showGuestInfo
if [[ "${NETWORK,,}" == "passt" || "${NETWORK,,}" == "slirp" ]]; then
if [ -z "$USER_PORTS" ]; then
info "Notice: because user-mode networking is active, when you need to forward custom ports to DSM, add them to the \"USER_PORTS\" variable."
@@ -1494,8 +1497,6 @@ else
fi
showGuestInfo
NET_OPTS+=" -device $ADAPTER,id=net0,netdev=hostnet0,romfile=,mac=$MAC"
if [[ "$GUEST_MTU" != "0" && "$GUEST_MTU" != "1500" ]]; then