Add NTP service

This commit is contained in:
世界
2023-02-21 14:53:00 +08:00
parent 5635d6a4dc
commit 7ce6f68b5f
26 changed files with 186 additions and 26 deletions

View File

@@ -44,7 +44,7 @@ func NewHTTP(ctx context.Context, router adapter.Router, logger log.ContextLogge
authenticator: auth.NewAuthenticator(options.Users),
}
if options.TLS != nil {
tlsConfig, err := tls.NewServer(ctx, logger, common.PtrValueOrDefault(options.TLS))
tlsConfig, err := tls.NewServer(ctx, router, logger, common.PtrValueOrDefault(options.TLS))
if err != nil {
return nil, err
}