mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 04:15:06 -05:00
reference: suppress orphan option in special reference modes
This allows a server that will become the orphan source to initialize its time with the initstepslew directive from the current orphan source or its clients.
This commit is contained in:
@@ -1248,7 +1248,7 @@ REF_GetOurStratum(void)
|
|||||||
int
|
int
|
||||||
REF_GetOrphanStratum(void)
|
REF_GetOrphanStratum(void)
|
||||||
{
|
{
|
||||||
if (!enable_local_stratum || !local_orphan)
|
if (!enable_local_stratum || !local_orphan || mode != REF_ModeNormal)
|
||||||
return NTP_MAX_STRATUM;
|
return NTP_MAX_STRATUM;
|
||||||
return local_stratum;
|
return local_stratum;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user