diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2013-03-06 00:08:28 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2013-03-06 00:08:28 +0100 |
commit | 00240df580c59b9a54dafafcbf5524d266f1616e (patch) | |
tree | 4bd43d2d80f9abd7d5741a006717cf765c27627f /config/haproxy-devel/haproxy_global.php | |
parent | c0ef04b32c9556106550e47b2d1e58de67ab4142 (diff) | |
download | pfsense-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_global.php')
-rwxr-xr-x | config/haproxy-devel/haproxy_global.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_global.php b/config/haproxy-devel/haproxy_global.php index 340c578b..61c654cf 100755 --- a/config/haproxy-devel/haproxy_global.php +++ b/config/haproxy-devel/haproxy_global.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); + } } else { if ($_POST['enable']) { $reqdfields = explode(" ", "maxconn"); |