- WRBUF w = wrbuf_alloc();
- wrbuf_write(w, addr, pp - addr);
- if (!strcmp(wrbuf_cstr(w), "@"))
- { /* IPV4 + IPV6 .. same as YAZ */
- ipv6_only = 0;
- hints.ai_flags = AI_PASSIVE;
- hints.ai_family = AF_INET6;
- error = getaddrinfo(0, pp + 1, &hints, &ai);
- }
- else
- error = getaddrinfo(wrbuf_cstr(w), pp + 1, &hints, &ai);
- wrbuf_destroy(w);
- }
- else
- {
- /* default for no host given is IPV4 */