Revision: 5574
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5574&view=rev
Author:   owes
Date:     2011-03-29 11:16:53 +0000 (Tue, 29 Mar 2011)

Log Message:
-----------
Remove test on DHCP enabled when adding static lease

Modified Paths:
--------------
    ipcop/trunk/html/cgi-bin/dhcp.cgi

Modified: ipcop/trunk/html/cgi-bin/dhcp.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/dhcp.cgi   2011-03-29 08:19:29 UTC (rev 5573)
+++ ipcop/trunk/html/cgi-bin/dhcp.cgi   2011-03-29 11:16:53 UTC (rev 5574)
@@ -16,7 +16,7 @@
 # along with IPCop; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-# (c) 2001-2010 The IPCop Team
+# (c) 2001-2011 The IPCop Team
 #
 # Over the years many people have changed and contributed to this file.
 # Check CVS and SVN for specifics.
@@ -418,11 +418,12 @@
     }
 
     my $insubnet = 0;
-    # IP must be in green or blue network and dnsmasq must be active there
+    # IP must be in green or blue network
     foreach $interface (@INTERFACEs) {
         for ($counter = 1; $counter <= $netsettings{"${interface}_COUNT"}; 
$counter++) {
             $ic = "${interface}_${counter}";
-            next if ($dhcpsettings{"ENABLED_${ic}"} ne 'on');
+            # Don't test on DHCP enabled for now
+            # next if ($dhcpsettings{"ENABLED_${ic}"} ne 'on');
 
             if 
($netaddressip{"${ic}"}->contains(NetAddr::IP->new($dhcpsettings{'FIXED_IP'}))) 
{
                 $insubnet++;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to