Branch: Tag:

2013-10-08

2013-10-08 14:23:58 by Per Hedbor <ph@opera.com>

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)    {