From add68afe0a280c6a6f921c385fc28751d5fef62b Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sun, 24 May 2015 11:29:47 +0100 Subject: [PATCH] simplify --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index ba245f05..7cc1595b 100755 --- a/weave +++ b/weave @@ -261,7 +261,7 @@ create_bridge() { ip link set dev v${CONTAINER_IFNAME}du master $BRIDGE ip link del dev v${CONTAINER_IFNAME}du # Drop traffic from Docker bridge to Weave; it can break subnet isolation - if [ ! "$DOCKER_BRIDGE" = "$BRIDGE" ] ; then + if [ "$DOCKER_BRIDGE" != "$BRIDGE" ] ; then # Note using -I to insert ahead of Docker's bridge rules run_iptables -t filter -I FORWARD -i $DOCKER_BRIDGE -o $BRIDGE -j DROP fi