diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-03-14 21:40:12 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-03-14 21:40:12 +0100 |
commit | 6c4f3b54a05b20bfe5fbc52206a1980308b539b3 (patch) | |
tree | 73f332391f74320d2883053d80a4373f96607a6b /etc/inc/util.inc | |
parent | fbcbfa44ee959ebbebf51cb1a20237fba54ce584 (diff) | |
download | pfsense-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.inc | 1 |
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) { |