mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:35:06 -05:00
sources: ignore noselect sources when updating selection options
Ignore any sources specified with the noselect option with respect to the auth selection mode.
This commit is contained in:
@@ -501,6 +501,8 @@ update_sel_options(void)
|
||||
auth_ntp_sources = unauth_ntp_sources = 0;
|
||||
|
||||
for (i = 0; i < n_sources; i++) {
|
||||
if (sources[i]->conf_sel_options & SRC_SELECT_NOSELECT)
|
||||
continue;
|
||||
if (sources[i]->type != SRC_NTP)
|
||||
continue;
|
||||
if (sources[i]->authenticated)
|
||||
@@ -535,6 +537,9 @@ update_sel_options(void)
|
||||
for (i = 0; i < n_sources; i++) {
|
||||
options = sources[i]->conf_sel_options;
|
||||
|
||||
if (options & SRC_SELECT_NOSELECT)
|
||||
continue;
|
||||
|
||||
switch (sources[i]->type) {
|
||||
case SRC_NTP:
|
||||
options |= sources[i]->authenticated ? auth_ntp_options : unauth_ntp_options;
|
||||
|
||||
Reference in New Issue
Block a user