don't allow named service->port translation

this will also mess up the redirect (to a named service otherwise).
This commit is contained in:
Hiltjo Posthuma 2017-07-22 12:30:35 +02:00 committed by Laslo Hunhold
parent 4f2cc50416
commit 0fc6b0cccd

View file

@ -852,6 +852,7 @@ getipsock(void)
int ret, insock = 0, yes; int ret, insock = 0, yes;
memset(&hints, 0, sizeof(hints)); memset(&hints, 0, sizeof(hints));
hints.ai_flags = AI_NUMERICSERV;
hints.ai_family = AF_UNSPEC; hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;