mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to remove systemd sockaddr function check, that is not
always present. Make socket activation more lenient. But not different when socket activation is not used. git-svn-id: file:///svn/unbound/trunk@4824 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
168bc963d3
commit
62f69f9b40
2 changed files with 7 additions and 11 deletions
|
|
@ -1,3 +1,8 @@
|
|||
1 August 2018: Wouter
|
||||
- Fix to remove systemd sockaddr function check, that is not
|
||||
always present. Make socket activation more lenient. But not
|
||||
different when socket activation is not used.
|
||||
|
||||
31 July 2018: Wouter
|
||||
- Patches from Jim Hague (Sinodun) for EDNS KeepAlive.
|
||||
- Sort out test runs when the build directory isn't the project
|
||||
|
|
|
|||
|
|
@ -144,17 +144,8 @@ systemd_get_activated(int family, int socktype, int listen,
|
|||
|
||||
for(i = 0; i < r; i++) {
|
||||
if(sd_is_socket(SD_LISTEN_FDS_START + i, family, socktype, listen)) {
|
||||
if( (family == AF_INET || family == AF_INET6) ) {
|
||||
if(sd_is_socket_sockaddr(
|
||||
SD_LISTEN_FDS_START + i, family,
|
||||
addr, addrlen)) {
|
||||
s = SD_LISTEN_FDS_START + i;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
s = SD_LISTEN_FDS_START + i;
|
||||
break;
|
||||
}
|
||||
s = SD_LISTEN_FDS_START + i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (s == -1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue