diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-22 20:37:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-22 20:37:46 +0000 |
commit | b865d178067c87e9835939a8f9a60b07a6cbfe87 (patch) | |
tree | 1469363db8c041590de423269454c5d19a52a42b /etc | |
parent | bc5af66d914e1cf83733e17b9a2cc415ed976e03 (diff) | |
download | pfsense-b865d178067c87e9835939a8f9a60b07a6cbfe87.zip pfsense-b865d178067c87e9835939a8f9a60b07a6cbfe87.tar.gz |
Include in same {}
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 11 |
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++; |