chore: ntp service dep with sing, optional synchronize system time

This commit is contained in:
riolu.rs
2023-09-03 17:48:52 +08:00
parent d6b80acfbc
commit d6cf2a837f
8 changed files with 130 additions and 90 deletions

View File

@ -186,7 +186,7 @@ func updateExperimental(c *config.Config) {
func updateNTP(c *config.NTP) {
if c.Enable {
ntp.ReCreateNTPService(net.JoinHostPort(c.Server, strconv.Itoa(c.Port)),
time.Duration(c.Interval))
time.Duration(c.Interval), c.WriteToSystem)
}
}