Merge remote-tracking branch 'upstream/master' into 23_retry_peers

This commit is contained in:
Bryan Boreham committed 2014-09-05 19:03:49 +01:00
commit b69682a626
3 files changed
+10 -2

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 48 KiB

+10 -2
View File
@@ -49,9 +49,17 @@ create_bridge() {
} }
add_nat_rule() { add_nat_rule() {
if ! iptables -w -t nat -C $1 >/dev/null 2>&1 # -w is recent addition to iptables
if [ -z "$CHECKED_IPTABLES_W" ] ; then
if iptables -S -w >/dev/null 2>&1 ; then
IPTABLES_W=-w
fi
CHECKED_IPTABLES_W=1
fi
if ! iptables $IPTABLES_W -t nat -C $1 >/dev/null 2>&1
then then
iptables -w -t nat -A $1 >/dev/null iptables $IPTABLES_W -t nat -A $1 >/dev/null
fi fi
} }