From 498248f43ec4d7fea1ce5af7527c796a73d2d777 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 7 Jul 2026 12:21:25 +0200 Subject: [PATCH] feat: Display guest info before mode warning (#1232) --- src/network.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/network.sh b/src/network.sh index a290fcd..697405b 100644 --- a/src/network.sh +++ b/src/network.sh @@ -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