Revision: 7243
http://sourceforge.net/p/ipcop/svn/7243
Author: owes
Date: 2014-02-19 11:32:10 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
Test on IP address when creating rules. Avoids messages for portfw rules during
DHCP startup on RED.
Modified Paths:
--------------
ipcop/trunk/src/scripts/puzzleFwRules.pl
ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2
Modified: ipcop/trunk/src/scripts/puzzleFwRules.pl
===================================================================
--- ipcop/trunk/src/scripts/puzzleFwRules.pl 2014-02-19 08:19:21 UTC (rev
7242)
+++ ipcop/trunk/src/scripts/puzzleFwRules.pl 2014-02-19 11:32:10 UTC (rev
7243)
@@ -27,6 +27,8 @@
# Re-worked code to use it in IPCop 1.5, renamed all variables,
keys, etc.
# from "BOT" to "FW".
#
+# (c) 2008-2014, the IPCop team
+#
# $Id$
#
@@ -1497,7 +1499,9 @@
}
}
elsif ($p_addressType eq 'default') {
- return () unless (defined $defaultNetworks{$p_addressName}{'IPT'});
+ # Check for defined and non-empty
+ return () unless (defined($defaultNetworks{$p_addressName}{'IPT'}));
+ return () unless (length($defaultNetworks{$p_addressName}{'IPT'}));
return "$p_addressInv $prefixIP
$defaultNetworks{$p_addressName}{'IPT'}";
}
Modified: ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2
===================================================================
--- ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2 2014-02-19 08:19:21 UTC
(rev 7242)
+++ ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2 2014-02-19 11:32:10 UTC
(rev 7243)
@@ -12,6 +12,7 @@
/home/httpd/cgi-bin/wireless.cgi
/usr/local/bin/dhcpcd.sh
/usr/local/bin/makesquidconf.pl
+/usr/local/bin/puzzleFwRules.pl
##
## acpid-2.0.21
/usr/sbin/acpid
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn