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:
parent
962ca91574
commit
6ba7fad2a7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue