pike.git/
lib/
modules/
Protocols.pmod/
DNS.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2013-10-08
2013-10-08 14:23:58 by Per Hedbor <ph@opera.com>
17b6b7371582a9f4920452be33e1eb39a041fbf9 (
17
lines) (+
3
/-
14
)
[
Show
|
Annotate
]
Branch:
7.9
There is really no need to do A6 queries any more.
1498:
array gethostbyname(string s) { mapping a_records = low_gethostbyname(s, T_A);
-
mapping a6_records = low_gethostbyname(s, T_A6);
+
mapping aaaa_records = low_gethostbyname(s, T_AAAA); #if 0 werror("a_records: %O\n"
-
"a6_records: %O\n"
+
"aaaa_records: %O\n",
-
a_records,
a6_records,
aaaa_records);
+
a_records, aaaa_records);
#endif /* 0 */ array(string) names=({});
1519:
ips+=({x->a}); } }
-
// Prefer a6 to aaaa.
-
if (a6_records) {
-
foreach(a6_records->an, mapping x)
-
{
-
if(x->name)
-
names+=({x->name});
-
if(x->a6)
-
ips+=({x->a6});
-
}
-
}
+
if (aaaa_records) { foreach(aaaa_records->an, mapping x) {