From: simon Date: Tue, 9 Jan 2001 17:25:06 +0000 (+0000) Subject: IPv4 numeric addresses were broken thanks to IPv6 patch X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/9d47d0eaaffed9a718b2ad09f3907546bc9d7632?ds=sidebyside;hp=6abb6cd7dbb5f5846931d11653de968dd8c4f9c7 IPv4 numeric addresses were broken thanks to IPv6 patch git-svn-id: svn://svn.tartarus.org/sgt/putty@854 cda61777-01e9-0310-a592-d414129be87e --- 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);