diff --git a/weave b/weave index 72766758..90db5253 100755 --- a/weave +++ b/weave @@ -537,11 +537,9 @@ attach() { netnsenter ip link set $CONTAINER_IFNAME up || return 1 - if [ -n "$NEW_ADDRS" ] ; then - for ADDR in "$NEW_ADDRS" ; do - arp_update $CONTAINER_IFNAME $ADDR "netnsenter" - done - fi + for ADDR in $NEW_ADDRS ; do + arp_update $CONTAINER_IFNAME $ADDR "netnsenter" + done # Route multicast packets across the weave network. # This must come last in 'attach'. If you change this, change weavewait to match.