diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-05-24 17:50:51 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-05-24 17:50:51 +0200 |
commit | 7fa9bacd55f24141ba030cce6140c0423c9a3ed6 (patch) | |
tree | da7775155b34f3e076e548c0a55f0115cb8ccec3 /config/haproxy-devel/pkg/haproxy_utils.inc | |
parent | 5be0199960c6d8fe85d1e4085e26316b504a91cd (diff) | |
download | pfsense-packages-7fa9bacd55f24141ba030cce6140c0423c9a3ed6.tar.gz pfsense-packages-7fa9bacd55f24141ba030cce6140c0423c9a3ed6.tar.bz2 pfsense-packages-7fa9bacd55f24141ba030cce6140c0423c9a3ed6.zip |
haproxy-devel, new functionality SSL OCSP stapling for haproxy
-fix server dns resolving in case a CNAME is used.
Diffstat (limited to 'config/haproxy-devel/pkg/haproxy_utils.inc')
-rw-r--r-- | config/haproxy-devel/pkg/haproxy_utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy-devel/pkg/haproxy_utils.inc b/config/haproxy-devel/pkg/haproxy_utils.inc index d8c4faf4..08065abc 100644 --- a/config/haproxy-devel/pkg/haproxy_utils.inc +++ b/config/haproxy-devel/pkg/haproxy_utils.inc @@ -48,7 +48,7 @@ class haproxy_utils { if (haproxy_utils::$pf_version < '2.2') exec("/usr/bin/dig {$host_esc} $type @$dnsserver | /usr/bin/grep {$host_esc} | /usr/bin/grep -v ';' | /usr/bin/awk '{ print $5 }'", $resolved); else - exec("/usr/bin/drill {$host_esc} $type @$dnsserver | /usr/bin/grep {$host_esc} | /usr/bin/grep -v ';' | /usr/bin/awk '{ print $5 }'", $resolved); + exec("/usr/bin/drill {$host_esc} $type @$dnsserver | /usr/bin/awk '{ if($1!=\";;\" && $4==\"{$type}\") print $5 }'", $resolved); foreach($resolved as $item) { $newitem = array(); $newitem["typeid"] = $type; |