diff --git a/doc/Changelog b/doc/Changelog index 2eb32d5a0..b82e06e21 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,8 @@ +5 October 2018: Wouter + - Squelch EADDRNOTAVAIL errors when the interface goes away, + this omits 'can't assign requested address' errors unless + verbosity is set to a high value. + 2 October 2018: Wouter - updated contrib/fastrpz.patch to apply for this version - dnscrypt.c removed sizeof to get array bounds. diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 458bf6f51..a2fb89067 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -565,7 +565,11 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, if(family==AF_INET6 && errno==EINVAL) *noproto = 1; else if(errno != EADDRINUSE && - !(errno == EACCES && verbosity < 4 && !listen)) { + !(errno == EACCES && verbosity < 4 && !listen) +#ifdef EADDRNOTAVAIL + && !(errno == EADDRNOTAVAIL && verbosity < 4 && !listen) +#endif + ) { log_err_addr("can't bind socket", strerror(errno), (struct sockaddr_storage*)addr, addrlen); }