Branch: Tag:

2012-01-17

2012-01-17 15:51:12 by Per Hedbor <ph@opera.com>

PIKE-1 (#8001): Support IPv6 nameservers. Works on at least Linux.

1068:    object udp = Stdio.UDP();    // Attempt to randomize the source port.    for (i = 0; i < RETRIES; i++) { -  if (!catch { udp->bind(1024 + random(65536-1024)); }) continue; +  if (!catch { udp->bind(1024 + random(65536-1024),"::"); }) continue;    } -  if (i >= RETRIES) udp->bind(0); +  if (i >= RETRIES) udp->bind(0,"::") || udp->bind(0);   #if 0    werror("Protocols.DNS.client()->do_sync_query(%O)\n"    "UDP Address: %s\n"