mirror of
https://github.com/unraid/webgui.git
synced 2026-05-12 15:20:29 -05:00
shim interface gets MAC address of parent, no need to generate one
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ start_network(){
|
||||
LINK=shim-$NETWORK
|
||||
GW=($(ip -4 route show default dev $NETWORK|awk '{print $3,$5;exit}'))
|
||||
if [[ $DOCKER_ALLOW_ACCESS == yes && (-n $IPV4 || -n $IPV6) ]]; then
|
||||
# create shim interface and copy server IPv4/IPv6 addresses to shim interface
|
||||
# create shim interface and copy parent IPv4/IPv6 addresses to shim interface
|
||||
[[ -e $SYSTEM/$LINK ]] || ip link add $LINK link $NETWORK type $ATTACH mode $MODE
|
||||
ip addr flush dev $LINK
|
||||
[[ -n $IPV4 ]] && ip -4 addr add $IPV4 dev $LINK metric 0
|
||||
|
||||
Reference in New Issue
Block a user