Change online status also for unresolved sources
This commit is contained in:
parent
83da131e99
commit
97f3e9404a
1 changed files with 18 additions and 0 deletions
|
@ -403,6 +403,15 @@ NSR_TakeSourcesOnline(IPAddr *mask, IPAddr *address)
|
|||
}
|
||||
}
|
||||
|
||||
if (address->family == IPADDR_UNSPEC) {
|
||||
struct UnresolvedSource *us;
|
||||
|
||||
for (us = unresolved_sources; us; us = us->next) {
|
||||
any = 1;
|
||||
us->params.online = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return any;
|
||||
}
|
||||
|
||||
|
@ -434,6 +443,15 @@ NSR_TakeSourcesOffline(IPAddr *mask, IPAddr *address)
|
|||
NCR_TakeSourceOffline(records[syncpeer].data);
|
||||
}
|
||||
|
||||
if (address->family == IPADDR_UNSPEC) {
|
||||
struct UnresolvedSource *us;
|
||||
|
||||
for (us = unresolved_sources; us; us = us->next) {
|
||||
any = 1;
|
||||
us->params.online = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return any;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue