mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Compare against $pconfig and only check items if gateway is changing.
This commit is contained in:
parent
de42a08e05
commit
ee968e4f29
@ -92,7 +92,7 @@ if ($_POST) {
|
||||
unset($input_errors);
|
||||
$pconfig = $_POST;
|
||||
|
||||
if($_POST['gateway']) {
|
||||
if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) {
|
||||
/* enumerate slbd gateways and make sure we are not creating a route loop */
|
||||
if(is_array($config['load_balancer']['lbpool'])) {
|
||||
foreach($config['load_balancer']['lbpool'] as $lbpool) {
|
||||
|
||||
@ -83,9 +83,7 @@ if ($_POST) {
|
||||
/* filter out spaces from descriptions */
|
||||
$POST['descr'] = remove_bad_chars($POST['descr']);
|
||||
|
||||
$pconfig = $_POST;
|
||||
|
||||
if($_POST['gateway']) {
|
||||
if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) {
|
||||
/* enumerate slbd gateways and make sure we are not creating a route loop */
|
||||
if(is_array($config['load_balancer']['lbpool'])) {
|
||||
foreach($config['load_balancer']['lbpool'] as $lbpool) {
|
||||
@ -100,6 +98,8 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
|
||||
$pconfig = $_POST;
|
||||
|
||||
/* input validation */
|
||||
if ($_POST['enable']) {
|
||||
|
||||
|
||||
@ -92,7 +92,7 @@ if ($_POST) {
|
||||
unset($input_errors);
|
||||
$pconfig = $_POST;
|
||||
|
||||
if($_POST['gateway']) {
|
||||
if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) {
|
||||
/* enumerate slbd gateways and make sure we are not creating a route loop */
|
||||
if(is_array($config['load_balancer']['lbpool'])) {
|
||||
foreach($config['load_balancer']['lbpool'] as $lbpool) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user