1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 15:24:49 -05:00

IPv4 numeric addresses were broken thanks to IPv6 patch

[originally from svn r854]
This commit is contained in:
Simon Tatham 2001-01-09 17:25:06 +00:00
parent 43dff68308
commit 3f7bf81cf6

View File

@ -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);