diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-09-23 01:15:34 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-09-23 01:15:34 +0200 |
commit | d2db08d5449698dcb3e98bcd58b39e8ff4cc23b0 (patch) | |
tree | 349cf5398e09ccefbf93d1bda193ebb11a4e549d /config/haproxy-devel/haproxy_socketinfo.inc | |
parent | abca7eb25313022157e372fd783c18a9c7643010 (diff) | |
download | pfsense-packages-d2db08d5449698dcb3e98bcd58b39e8ff4cc23b0.tar.gz pfsense-packages-d2db08d5449698dcb3e98bcd58b39e8ff4cc23b0.tar.bz2 pfsense-packages-d2db08d5449698dcb3e98bcd58b39e8ff4cc23b0.zip |
haproxy-devel, fix extra sni acl's, allow a ipalias to be entered for source ip filtering, update pfSense 2.2 binary, fix some php warnings
Diffstat (limited to 'config/haproxy-devel/haproxy_socketinfo.inc')
-rw-r--r-- | config/haproxy-devel/haproxy_socketinfo.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_socketinfo.inc b/config/haproxy-devel/haproxy_socketinfo.inc index 6beb17c5..cbfb131b 100644 --- a/config/haproxy-devel/haproxy_socketinfo.inc +++ b/config/haproxy-devel/haproxy_socketinfo.inc @@ -122,6 +122,8 @@ function haproxy_get_clients($show_traffic = false){// "show sess" $clients=array(); $sessions = haproxy_socket_command("show sess"); foreach($sessions as $line) { + if (trim($line) == "") + continue; list($sessid,$proto,$src,$fe,$be,$srv,$ts,$age,$calls,$rq,$rp,$s0,$s1,$exp) = explode(" ", $line); #Retrieve data $sessid = explode(":", $sessid); @@ -149,10 +151,10 @@ function haproxy_get_clients($show_traffic = false){// "show sess" $session_data = haproxy_socket_command("show sess {$client['sessid']}"); $client['session_data'] = $session_data; - $req = explode(" ",$session_data[13]); + $req = explode(" ",$session_data[12]); $x = explode("=",$req[7]); $client['session_datareq'] = $x[1]; - $res = explode(" ",$session_data[16]); + $res = explode(" ",$session_data[15]); $x = explode("=",$res[7]); $client['session_datares'] = $x[1]; } |