summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-07-02 14:07:29 +0200
committerLinus Nordberg <linus@nordu.net>2011-07-02 14:07:29 +0200
commit71aa913e87e4d4539aa1049d6d249d1dd3d61756 (patch)
treedae908fe4165a9443ba4c1532181ae703cdb2274
parentcd1cdfc090cafa6580da088558913c406d2acfcc (diff)
Resolve IPv6 addresses too.
-rw-r--r--lib/radsec.c2
1 files changed, 1 insertions, 1 deletions
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)
{