Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ getSlirp() {

configureSlirp() {

NETWORK="slirp"
[[ "$DEBUG" == [Yy1]* ]] && echo "Configuring slirp networking..."

local ip="$IP"
Expand Down Expand Up @@ -343,6 +344,7 @@ configureSlirp() {

configurePasst() {

NETWORK="passt"
[[ "$DEBUG" == [Yy1]* ]] && echo "Configuring user-mode networking..."

local log="/var/log/passt.log"
Expand Down Expand Up @@ -823,7 +825,7 @@ if [[ "$DHCP" == [Yy1]* ]]; then
else

case "${NETWORK,,}" in
"user"* | "passt" | "slirp" ) ;;
"passt" | "slirp" | "user"* ) ;;
"tap" | "tun" | "tuntap" | "y" )

# Configure tap interface
Expand All @@ -838,11 +840,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
Expand Down