This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, master has been updated via 70248550e242e15d9668d4af42bbb03e438e744a (commit) from d482af1005aa3ed1b81d85798229866459f3f9d0 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 70248550e242e15d9668d4af42bbb03e438e744a Author: Christian Schmidt christian.schmidt@ipfire.org Date: Sun Sep 5 17:18:43 2010 +0200
Be a little more robust.
-----------------------------------------------------------------------
Summary of changes: config/outgoingfw/outgoingfw.pl | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
Difference in files: diff --git a/config/outgoingfw/outgoingfw.pl b/config/outgoingfw/outgoingfw.pl index e2f9093..8d4d27d 100644 --- a/config/outgoingfw/outgoingfw.pl +++ b/config/outgoingfw/outgoingfw.pl @@ -153,12 +153,12 @@ foreach $configentry (sort @configs) } elsif ($configline[2] eq 'ip') { @SOURCE = ("$configline[5]"); $DEV = ""; - } elsif ($configline[2] eq 'all') { - @SOURCE = ("0/0"); - $DEV = ""; } elsif ($configline[2] eq 'mac') { @SOURCE = ("$configline[6]"); $DEV = ""; + } elsif ($configline[2] eq 'all') { + @SOURCE = ("0/0"); + $DEV = ""; } else { if ( -e "/var/ipfire/outgoing/groups/ipgroups/$configline[2]" ) { @SOURCE = `cat /var/ipfire/outgoing/groups/ipgroups/$configline[2]`; @@ -189,7 +189,7 @@ foreach $configentry (sort @configs)
if ( $SOURCE eq "" ){next;}
- if ( $configline[6] ne "" || $configline[2] eq 'mac' ){ + if ( ( $configline[6] ne "" || $configline[2] eq 'mac' ) && $configline[2] ne 'all'){ $SOURCE =~ s/[^a-zA-Z0-9]/:/gi; $CMD = "/sbin/iptables -A OUTGOINGFWMAC -m mac --mac-source $SOURCE -d $DESTINATION -p $PROTO"; } else {
hooks/post-receive -- IPFire 2.x development tree