fix: Generate local MAC address (#179)
This commit is contained in:
parent
71810373f9
commit
69ece08bcc
2 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,8 @@ configureNAT() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GATEWAY_MAC=$(echo "$VM_NET_MAC" | rev)
|
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
|
if ! ip link set dev "$VM_NET_TAP" address "$GATEWAY_MAC"; then
|
||||||
warn "Failed to set gateway MAC address.."
|
warn "Failed to set gateway MAC address.."
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -266,4 +266,5 @@ echo "$user:{PLAIN}${PASS:-}" > /etc/nginx/.htpasswd
|
||||||
cp -r /var/www/* /run/shm
|
cp -r /var/www/* /run/shm
|
||||||
html "Starting $APP for Docker..."
|
html "Starting $APP for Docker..."
|
||||||
nginx -e stderr
|
nginx -e stderr
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue