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:
Miroslav Lichvar 2016-05-30 13:59:01 +02:00
parent 962ca91574
commit 6ba7fad2a7

View file

@ -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;
}