wg: do not use addrconfig with port in gai

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-03-28 10:46:31 +02:00
parent 6d20c647d0
commit d42dd68add

View file

@ -66,7 +66,7 @@ static inline uint16_t parse_port(const char *value)
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_DGRAM,
.ai_protocol = IPPROTO_UDP,
.ai_flags = AI_ADDRCONFIG | AI_PASSIVE
.ai_flags = AI_PASSIVE
};
if (!strlen(value)) {