summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-03-14 21:40:12 +0100
committerSeth Mos <seth.mos@dds.nl>2011-03-14 21:40:12 +0100
commit6c4f3b54a05b20bfe5fbc52206a1980308b539b3 (patch)
tree73f332391f74320d2883053d80a4373f96607a6b /etc/inc/util.inc
parentfbcbfa44ee959ebbebf51cb1a20237fba54ce584 (diff)
downloadpfsense-6c4f3b54a05b20bfe5fbc52206a1980308b539b3.zip
pfsense-6c4f3b54a05b20bfe5fbc52206a1980308b539b3.tar.gz
Make sure to note the limitations to gethostbyname, it does not work for Quad A records. Fix resolve_retry in the process, use that.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index cf531ce..48b1de1 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -1102,6 +1102,7 @@ function resolve_retry($hostname, $retries = 5) {
return $hostname;
for ($i = 0; $i < $retries; $i++) {
+ // FIXME: gethostbyname does not work for AAAA hostnames, boo, hiss
$ip = gethostbyname($hostname);
if ($ip && $ip != $hostname) {
OpenPOWER on IntegriCloud