From 4208f7b1ba1ed0a084e676ed65ac775e6b4b3279 Mon Sep 17 00:00:00 2001 From: timdufrane Date: Thu, 21 Nov 2013 13:33:52 -0500 Subject: Add DHCP without gateway capability --- etc/inc/services.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 9feacb6..4f3696b 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -616,7 +616,7 @@ EOPP; if (isset($poolconf['denyunknown'])) $dhcpdconf .= " deny unknown-clients;\n"; - if ($poolconf['gateway'] && ($poolconf['gateway'] != $dhcpifconf['gateway'])) + if ($poolconf['gateway'] && $poolconf['gateway'] != "none" && ($poolconf['gateway'] != $dhcpifconf['gateway'])) $dhcpdconf .= " option routers {$poolconf['gateway']};\n"; if($dhcpifconf['failover_peerip'] <> "") { @@ -687,9 +687,11 @@ EOPP; } // End of settings inside pools - if ($dhcpifconf['gateway']) { + if ($dhcpifconf['gateway'] && $dhcpifconf['gateway'] != "none") { $routers = $dhcpifconf['gateway']; $add_routers = true; + } elseif ($dhcpifconf['gateway'] == "none") { + $add_routers = false; } else { $routers = $ifcfgip; } -- cgit v1.1