mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-05 14:29:37 -05:00
- Squelch 'cannot assign requested address' log messages unless
verbosity is high, it was spammed after network down. git-svn-id: file:///svn/unbound/trunk@3602 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
3c8627a28b
commit
6484f6b9b8
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
19 January 2016: Wouter
|
||||
- Squelch 'cannot assign requested address' log messages unless
|
||||
verbosity is high, it was spammed after network down.
|
||||
|
||||
14 January 2016: Wouter
|
||||
- Fix to simplify empty string checking from Michael McConville.
|
||||
- iana portlist update.
|
||||
|
|
|
|||
|
|
@ -356,7 +356,12 @@ udp_send_errno_needs_log(struct sockaddr* addr, socklen_t addrlen)
|
|||
#endif
|
||||
/* permission denied is gotten for every send if the
|
||||
* network is disconnected (on some OS), squelch it */
|
||||
if(errno == EPERM && verbosity < VERB_DETAIL)
|
||||
if( ((errno == EPERM)
|
||||
# ifdef EADDRNOTAVAIL
|
||||
/* 'Cannot assign requested address' also when disconnected */
|
||||
|| (errno == EADDRNOTAVAIL)
|
||||
# endif
|
||||
) && verbosity < VERB_DETAIL)
|
||||
return 0;
|
||||
/* squelch errors where people deploy AAAA ::ffff:bla for
|
||||
* authority servers, which we try for intranets. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue