From 3f7bf81cf6cf87f257a374fbc6ec0df3e6d73137 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 9 Jan 2001 17:25:06 +0000 Subject: [PATCH] IPv4 numeric addresses were broken thanks to IPv6 patch [originally from svn r854] --- winnet.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/winnet.c b/winnet.c index 2cde0752..88fbae0e 100644 --- a/winnet.c +++ b/winnet.c @@ -273,6 +273,11 @@ SockAddr sk_namelookup(char *host, char **canonicalname) } else { + /* + * Hack inserted to deal with problems with numeric IPs. + * FIXME: how will this work in IPv6? + */ + ret->family = AF_INET; *canonicalname = host; } ret->address = ntohl(a);