mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 13:45:07 -05:00
Change online status also for unresolved sources
This commit is contained in:
@@ -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;
|
return any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -434,6 +443,15 @@ NSR_TakeSourcesOffline(IPAddr *mask, IPAddr *address)
|
|||||||
NCR_TakeSourceOffline(records[syncpeer].data);
|
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;
|
return any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user