]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg: do not use AI_ADDRCONFIG
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 20 Dec 2016 20:50:29 +0000 (21:50 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 23 Dec 2016 20:09:23 +0000 (21:09 +0100)
commita488f1b08492e6bb6e6d23251e57edc5ba5616b2
tree3acf244b6ca7ebc040324aea3d8005576fb00a3c
parentb5415c0b653deb38a4a3750cf28bf31ff2e1a710
wg: do not use AI_ADDRCONFIG

Some people run wg(8) using hard coded v6 addresses before interfaces
have v6 addresses, causing getaddrinfo to fail. Since AI_ADDRCONFIG
doesn't actualy change the sorting, but just the queries made, we don't
really need AI_ADDRCONFIG anyway, since we're always only taking the
first result.

Reported-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/config.c