Skip to content

Commit 69ece08

Browse files
authoredFeb 25, 2025
fix: Generate local MAC address (#179)
1 parent 7181037 commit 69ece08

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎src/network.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ configureNAT() {
222222
fi
223223

224224
GATEWAY_MAC=$(echo "$VM_NET_MAC" | rev)
225+
GATEWAY_MAC="02:${GATEWAY_MAC:0:14}"
226+
225227
if ! ip link set dev "$VM_NET_TAP" address "$GATEWAY_MAC"; then
226228
warn "Failed to set gateway MAC address.."
227229
fi

‎src/reset.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,5 @@ echo "$user:{PLAIN}${PASS:-}" > /etc/nginx/.htpasswd
266266
cp -r /var/www/* /run/shm
267267
html "Starting $APP for Docker..."
268268
nginx -e stderr
269+
269270
return 0

0 commit comments

Comments
 (0)