fix: Port forwarding warning (#809)

This commit is contained in:
Kroese 2024-09-05 18:58:23 +02:00 committed by GitHub
parent 106c684389
commit 1197c4791e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -397,7 +397,7 @@ else
if ! configureNAT; then
NETWORK="user"
warn "falling back to usermode networking (slow)!"
warn "falling back to usermode networking! Performance will be bad and port forwarding will not work."
ip link set "$VM_NET_TAP" down promisc off &> null || true
ip link delete "$VM_NET_TAP" &> null || true

View File

@ -56,6 +56,7 @@ if ! grep -qi "model name" <<< "$CPI"; then
CPU="Unknown"
else
CPU=$(echo "$CPI" | grep -m 1 -i 'model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/ */ /g')
CPU="${CPU// with Radeon Graphics/}"
fi
# Check system