aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_listeners.php
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2013-03-06 00:08:28 +0100
committerPiBa-NL <pba_2k3@yahoo.com>2013-03-06 00:08:28 +0100
commit00240df580c59b9a54dafafcbf5524d266f1616e (patch)
tree4bd43d2d80f9abd7d5741a006717cf765c27627f /config/haproxy-devel/haproxy_listeners.php
parentc0ef04b32c9556106550e47b2d1e58de67ab4142 (diff)
downloadpfsense-packages-00240df580c59b9a54dafafcbf5524d266f1616e.tar.gz
pfsense-packages-00240df580c59b9a54dafafcbf5524d266f1616e.tar.bz2
pfsense-packages-00240df580c59b9a54dafafcbf5524d266f1616e.zip
haproxy-devel,
-allow shared frontend with SSL offloading -error checking+reporting to user while applying configuration.
Diffstat (limited to 'config/haproxy-devel/haproxy_listeners.php')
-rw-r--r--config/haproxy-devel/haproxy_listeners.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_listeners.php b/config/haproxy-devel/haproxy_listeners.php
index c5c41714..88cdb62f 100644
--- a/config/haproxy-devel/haproxy_listeners.php
+++ b/config/haproxy-devel/haproxy_listeners.php
@@ -48,8 +48,14 @@ if ($_POST) {
config_lock();
$retval = haproxy_configure();
config_unlock();
- $savemsg = get_std_save_message($retval);
- unlink_if_exists($d_haproxyconfdirty_path);
+
+ $result = haproxy_check_writtenconfig_error();
+ if ($result)
+ $savemsg = gettext($result);
+ else {
+ $savemsg = get_std_save_message($retval);
+ unlink_if_exists($d_haproxyconfdirty_path);
+ }
}
}