aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_utils.inc
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2014-09-26 00:47:52 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2014-09-26 00:47:52 +0200
commitb19153963fff00be53e8c72c3d71262886f61815 (patch)
tree29d3f97c9f48644121ce8f5fe7ddb153e2e08470 /config/haproxy-devel/haproxy_utils.inc
parent56b0123f775788eb53610b7ab463e4852dbafa3c (diff)
downloadpfsense-packages-b19153963fff00be53e8c72c3d71262886f61815.tar.gz
pfsense-packages-b19153963fff00be53e8c72c3d71262886f61815.tar.bz2
pfsense-packages-b19153963fff00be53e8c72c3d71262886f61815.zip
haproxy-devel, fix transparent-client-ip on pfsense 2.2 for changes in ipfw
Diffstat (limited to 'config/haproxy-devel/haproxy_utils.inc')
-rw-r--r--config/haproxy-devel/haproxy_utils.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy_utils.inc b/config/haproxy-devel/haproxy_utils.inc
index 37c1d623..8fb89eab 100644
--- a/config/haproxy-devel/haproxy_utils.inc
+++ b/config/haproxy-devel/haproxy_utils.inc
@@ -33,6 +33,11 @@
require_once("config.inc");
+class haproxy_utils {
+ public static $pf_version;
+}
+haproxy_utils::$pf_version = substr(trim(file_get_contents("/etc/version")),0,3);
+
if(!function_exists('ifset')){
function ifset(&$var, $default = ''){
return isset($var) ? $var : $default;