fix: Set network flag (#1075)

This commit is contained in:
Kroese 2025-10-17 01:39:49 +02:00 committed by GitHub
parent ea0d7ee6cd
commit 0f97091e61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,6 +271,7 @@ getSlirp() {
configureSlirp() {
NETWORK="slirp"
[[ "$DEBUG" == [Yy1]* ]] && echo "Configuring slirp networking..."
local ip="$IP"
@ -302,6 +303,7 @@ configureSlirp() {
configurePasst() {
NETWORK="passt"
[[ "$DEBUG" == [Yy1]* ]] && echo "Configuring user-mode networking..."
local log="/var/log/passt.log"
@ -785,7 +787,7 @@ else
fi
case "${NETWORK,,}" in
"user"* | "passt" | "slirp" ) ;;
"passt" | "slirp" | "user"* ) ;;
"tap" | "tun" | "tuntap" | "y" )
# Configure tap interface
@ -800,11 +802,9 @@ else
esac
[[ "${NETWORK,,}" == "user"* ]] && NETWORK="passt"
case "${NETWORK,,}" in
"tap" | "tun" | "tuntap" | "y" ) ;;
"passt" )
"passt" | "user"* )
# Configure for user-mode networking (passt)
if ! configurePasst; then