mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:45:07 -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
|
||||
REF_GetOrphanStratum(void)
|
||||
{
|
||||
if (!enable_local_stratum || !local_orphan)
|
||||
if (!enable_local_stratum || !local_orphan || mode != REF_ModeNormal)
|
||||
return NTP_MAX_STRATUM;
|
||||
return local_stratum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user