Fix TLS server close

This commit is contained in:
世界 2026-05-12 15:01:56 +08:00
parent 6af341af27
commit 96edb9a774
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -320,7 +320,7 @@ func (c *STDServerConfig) certificateUpdated(path string) error {
}
func (c *STDServerConfig) Close() error {
return common.Close(c.certificateProvider, c.acmeService, c.watcher)
return common.Close(c.certificateProvider, c.acmeService, common.PtrOrNil(c.watcher))
}
func NewSTDServer(ctx context.Context, logger log.ContextLogger, options option.InboundTLSOptions) (ServerConfig, error) {