mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-29 15:54:48 -05:00
IPv4 numeric addresses were broken thanks to IPv6 patch
[originally from svn r854]
This commit is contained in:
parent
43dff68308
commit
3f7bf81cf6
5
winnet.c
5
winnet.c
@ -273,6 +273,11 @@ SockAddr sk_namelookup(char *host, char **canonicalname)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* Hack inserted to deal with problems with numeric IPs.
|
||||||
|
* FIXME: how will this work in IPv6?
|
||||||
|
*/
|
||||||
|
ret->family = AF_INET;
|
||||||
*canonicalname = host;
|
*canonicalname = host;
|
||||||
}
|
}
|
||||||
ret->address = ntohl(a);
|
ret->address = ntohl(a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user