fix: Generate local MAC address (#899)
Some checks are pending
Build / Check (push) Waiting to run
Build / Build (push) Blocked by required conditions

This commit is contained in:
Kroese 2025-02-24 21:01:55 +01:00 committed by GitHub
parent 2adf0b292b
commit 8c5e0ee274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,6 +214,8 @@ configureNAT() {
fi
GATEWAY_MAC=$(echo "$VM_NET_MAC" | rev)
GATEWAY_MAC="02:${GATEWAY_MAC:0:14}"
if ! ip link set dev "$VM_NET_TAP" address "$GATEWAY_MAC"; then
warn "Failed to set gateway MAC address.."
fi