From 5148ed793660750cca630baba6030e983587e4fc Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sun, 24 May 2015 11:30:04 +0100 Subject: [PATCH] symmetry with create_bridge --- weave | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weave b/weave index 7cc1595b..8460bd9e 100755 --- a/weave +++ b/weave @@ -287,7 +287,9 @@ destroy_bridge() { if [ -d /sys/class/net/$BRIDGE ] ; then ip link del dev $BRIDGE fi - run_iptables -t filter -D FORWARD -i $DOCKER_BRIDGE -o $BRIDGE -j DROP 2>/dev/null || true + if [ "$DOCKER_BRIDGE" != "$BRIDGE" ] ; then + run_iptables -t filter -D FORWARD -i $DOCKER_BRIDGE -o $BRIDGE -j DROP 2>/dev/null || true + fi run_iptables -t filter -D FORWARD -i $BRIDGE -o $BRIDGE -j ACCEPT 2>/dev/null || true run_iptables -t nat -F WEAVE >/dev/null 2>&1 || true run_iptables -t nat -D POSTROUTING -j WEAVE >/dev/null 2>&1 || true