mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
05406cfc7b
This adds method to validate the system clock is synchronized on startup. Configuration allows adjusting the server address, enabled state, desync limit, and if the error is fatal. Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
16 lines
277 B
Go
16 lines
277 B
Go
package ntp
|
|
|
|
const (
|
|
ntpClientModeValue uint8 = 3 // 00000011
|
|
ntpLeapEnabledValue uint8 = 64 // 01000000
|
|
ntpVersion3Value uint8 = 24 // 00011000
|
|
ntpVersion4Value uint8 = 40 // 00101000
|
|
)
|
|
|
|
const ntpEpochOffset = 2208988800
|
|
|
|
const (
|
|
ntpV3 ntpVersion = iota
|
|
ntpV4
|
|
)
|