chore: ntp service support dialer-proxy

This commit is contained in:
wwqgtxx
2023-09-25 09:11:20 +08:00
parent c0ba798708
commit 0dfe696300
3 changed files with 24 additions and 12 deletions

View File

@ -190,8 +190,12 @@ 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), c.WriteToSystem)
ntp.ReCreateNTPService(
net.JoinHostPort(c.Server, strconv.Itoa(c.Port)),
time.Duration(c.Interval),
c.DialerProxy,
c.WriteToSystem,
)
}
}