summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-22 20:37:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-22 20:37:46 +0000
commitb865d178067c87e9835939a8f9a60b07a6cbfe87 (patch)
tree1469363db8c041590de423269454c5d19a52a42b /etc
parentbc5af66d914e1cf83733e17b9a2cc415ed976e03 (diff)
downloadpfsense-b865d178067c87e9835939a8f9a60b07a6cbfe87.zip
pfsense-b865d178067c87e9835939a8f9a60b07a6cbfe87.tar.gz
Include in same {}
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 68f051c..f050076 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -101,9 +101,13 @@ EOD;
}
}
if($skew == 1) {
+ $dhcpdconf_pri = "";
$type = "secondary";
+
} else {
$type = "primary";
+ $dhcpdconf_pri = "mclt 600;\n";
+ $dhcpdconf_pri .= "split 128;\n";
}
$dhcpdconf .= <<<EOPP
failover peer "dhcp{$dhcpnum}" {
@@ -113,14 +117,11 @@ failover peer "dhcp{$dhcpnum}" {
peer address {$dhcpifconf['failover_peerip']};
peer port 519;
max-response-delay 60;
- max-unacked-updates 10;
+ max-unacked-updates 10;
+ {$dhcpdconf_pri}
load balance max seconds 3;
}
EOPP;
- if($type == "primary") {
- $dhcpdconf .= "mclt 600;\n";
- $dhcpdconf .= "split 128;\n";
- }
$dhcpnum++;
OpenPOWER on IntegriCloud