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_pools.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_pools.php')
-rw-r--r-- | config/haproxy-devel/haproxy_pools.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_pools.php b/config/haproxy-devel/haproxy_pools.php index bad4bf09..07e7d106 100644 --- a/config/haproxy-devel/haproxy_pools.php +++ b/config/haproxy-devel/haproxy_pools.php @@ -52,8 +52,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); + } } } |