mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
feat: ntp service
This commit is contained in:
@@ -59,6 +59,14 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
|
||||
Timestamp: c.SingConfig.LogConfig.Timestamp,
|
||||
Output: c.SingConfig.LogConfig.Output,
|
||||
}
|
||||
options.NTP = &option.NTPOptions{
|
||||
Enabled: c.SingConfig.NtpConfig.Enable,
|
||||
WriteToSystem: true,
|
||||
ServerOptions: option.ServerOptions{
|
||||
Server: c.SingConfig.NtpConfig.Server,
|
||||
ServerPort: c.SingConfig.NtpConfig.ServerPort,
|
||||
},
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx = pause.ContextWithDefaultManager(ctx)
|
||||
createdAt := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user