fix multi-ip attach

This got broken in f7dfe9d
This commit is contained in:
Matthias Radestock committed 2015-10-03 17:09:25 +01:00
1 parent d798b0cabb
commit dac932f553
1 file changed
+3 -5
+3 -5
View File
@@ -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.