summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-02-02 11:20:04 -0500
committerjim-p <jimp@pfsense.org>2012-02-02 11:20:04 -0500
commit6fbe0168416bdb5d410cb36fdf531b317d3e072a (patch)
treed0aea3cdf5a0e57aca2b34c03903645064c6cae0 /usr/local/www/system_advanced_misc.php
parenteb7454c4491c38c183f4c37df0a0987fe9114e24 (diff)
downloadpfsense-6fbe0168416bdb5d410cb36fdf531b317d3e072a.zip
pfsense-6fbe0168416bdb5d410cb36fdf531b317d3e072a.tar.gz
If the sticky option is changed, restart relayd. Fixes #2157
Diffstat (limited to 'usr/local/www/system_advanced_misc.php')
-rw-r--r--usr/local/www/system_advanced_misc.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index e1da772..5889df5 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -49,6 +49,7 @@ require_once("filter.inc");
require_once("shaper.inc");
require_once("ipsec.inc");
require_once("vpn.inc");
+require_once("vslb.inc");
$pconfig['proxyurl'] = $config['system']['proxyurl'];
$pconfig['proxyport'] = $config['system']['proxyport'];
@@ -103,11 +104,19 @@ if ($_POST) {
else
unset($config['system']['proxypass']);
+ $need_relayd_restart = false;
if($_POST['lb_use_sticky'] == "yes") {
- $config['system']['lb_use_sticky'] = true;
- $config['system']['srctrack'] = $_POST['srctrack'];
- } else
- unset($config['system']['lb_use_sticky']);
+ if (!isset($config['system']['lb_use_sticky'])) {
+ $config['system']['lb_use_sticky'] = true;
+ $config['system']['srctrack'] = $_POST['srctrack'];
+ $need_relayd_restart = true;
+ }
+ } else {
+ if (isset($config['system']['lb_use_sticky'])) {
+ unset($config['system']['lb_use_sticky']);
+ $need_relayd_restart = true;
+ }
+ }
if($_POST['gw_switch_default'] == "yes")
$config['system']['gw_switch_default'] = true;
@@ -283,7 +292,7 @@ function maxmss_checked(obj) {
"refer to this connection. Once the states expire, so will " .
"the sticky connection. Further connections from that host " .
"will be redirected to the next web server in the round " .
- "robin."); ?>
+ "robin. Changing this option will restart the Load Balancing service."); ?>
<br />
<input name="srctrack" id="srctrack" value="<?php if ($pconfig['srctrack'] <> "") echo $pconfig['srctrack']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['lb_use_sticky'] == false) echo "disabled"; ?>>
<br />
OpenPOWER on IntegriCloud