Skip to content

Commit 8d5a69d

Browse files
committed
Docker: fix custom network creation when IPv6 is used
1 parent f513886 commit 8d5a69d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etc/rc.d/rc.docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ docker_network_start(){
397397
fi
398398
if [[ $SET6 == 1 ]]; then
399399
SUBNET6="--ipv6 --subnet=${SUBNET6// / --ipv6 --subnet=}"
400-
[[ -n $GATEWAY6 && ${GATEWAY6:0:4} != fe80 ]] && GATEWAY6="--gateway=$GATEWAY6"
400+
[[ -n $GATEWAY6 && ${GATEWAY6:0:4} != fe80 ]] && GATEWAY6="--gateway=$GATEWAY6" || GATEWAY6=
401401
else
402402
GATEWAY6=
403403
fi

0 commit comments

Comments
 (0)