mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 06:35:07 -05:00
main: setup access restrictions before initstepslew
This commit is contained in:
3
main.c
3
main.c
@@ -144,7 +144,6 @@ post_init_ntp_hook(void *anything)
|
|||||||
semblence of validity about it. */
|
semblence of validity about it. */
|
||||||
SRC_ReloadSources();
|
SRC_ReloadSources();
|
||||||
}
|
}
|
||||||
CNF_SetupAccessRestrictions();
|
|
||||||
|
|
||||||
RTC_StartMeasurements();
|
RTC_StartMeasurements();
|
||||||
RCL_StartRefclocks();
|
RCL_StartRefclocks();
|
||||||
@@ -484,6 +483,8 @@ int main
|
|||||||
/* From now on, it is safe to do finalisation on exit */
|
/* From now on, it is safe to do finalisation on exit */
|
||||||
initialised = 1;
|
initialised = 1;
|
||||||
|
|
||||||
|
CNF_SetupAccessRestrictions();
|
||||||
|
|
||||||
if (ref_mode == REF_ModeNormal && CNF_GetInitSources() > 0) {
|
if (ref_mode == REF_ModeNormal && CNF_GetInitSources() > 0) {
|
||||||
ref_mode = REF_ModeInitStepSlew;
|
ref_mode = REF_ModeInitStepSlew;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user