Always call res_init() before getaddrinfo().
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Apr 2015 13:42:48 +0000 (15:42 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Apr 2015 13:42:48 +0000 (15:42 +0200)
commit95921696a49d1eff058880c90a80efd208de959d
tree7882d3d4028dcd7a849707d68b4532e353c63997
parentf500a3d4e6e51ea1d88235e89e494ecb8f71ba5b
parent7027bba541eca3e34f689bebd6f6e408ba4e7710
Always call res_init() before getaddrinfo().

Unfortunately, glibc assumes that /etc/resolv.conf is a static file that
never changes. Even on servers, /etc/resolv.conf might be a dynamically
generated file, and we never know when it changes. So just call
res_init() every time, so glibc uses up-to-date nameserver information.

Conflicts:
src/have.h
src/net.c
src/net_setup.c
doc/tinc.conf.5.in
doc/tinc.texi
src/net_packet.c
src/net_setup.c