From: Miroslav Lichvar Date: Mon, 30 May 2016 11:59:01 +0000 (+0200) Subject: reference: suppress orphan option in special reference modes X-Git-Tag: 2.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ba7fad2a76aa3e112c4f718bde896e147d10ffc;p=thirdparty%2Fchrony.git 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. --- diff --git a/reference.c b/reference.c index 4f4ced59..17001860 100644 --- a/reference.c +++ b/reference.c @@ -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; }