summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r--etc/inc/services.inc6
1 files changed, 4 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud