diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-09 16:50:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-09 16:50:37 +0000 |
commit | 9534ea8b210f0e4f525f342d8356743208a38cb2 (patch) | |
tree | 766891bc486972e67cb506b441b27b23c1c585cc /etc/inc | |
parent | 23a442986d8586330ade19c426dfc12b7f714828 (diff) | |
download | pfsense-9534ea8b210f0e4f525f342d8356743208a38cb2.zip pfsense-9534ea8b210f0e4f525f342d8356743208a38cb2.tar.gz |
Port load balancer sticky address option
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/services.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index f6fd5f6..970f715 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -32,6 +32,14 @@ /* include all configuration functions */ require_once("functions.inc"); +function load_balancer_use_sticky() { + global $config, $g; + if (isset ($config['system']['lb_use_sticky'])) + touch("/var/etc/use_pf_pool__stickyaddr"); + else + unlink_if_exists("/var/etc/use_pf_pool__stickyaddr"); +} + function services_dhcpd_configure() { global $config, $g; if(isset($config['system']['developerspew'])) { |