From 71aa913e87e4d4539aa1049d6d249d1dd3d61756 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 2 Jul 2011 14:07:29 +0200 Subject: Resolve IPv6 addresses too. --- lib/radsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/radsec.c') diff --git a/lib/radsec.c b/lib/radsec.c index ae8eda6..1ffc244 100644 --- a/lib/radsec.c +++ b/lib/radsec.c @@ -105,7 +105,7 @@ rs_resolv (struct evutil_addrinfo **addr, struct evutil_addrinfo hints, *res = NULL; memset (&hints, 0, sizeof(struct evutil_addrinfo)); - hints.ai_family = AF_INET; /* IPv4 only. TODO: Set AF_UNSPEC. */ + hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_ADDRCONFIG; switch (type) { -- cgit v1.1