Skip to content

Commit 5f2bedf

Browse files
committed
Fix TLS server close
1 parent 6275582 commit 5f2bedf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/tls/std_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (c *STDServerConfig) certificateUpdated(path string) error {
321321
}
322322

323323
func (c *STDServerConfig) Close() error {
324-
return common.Close(c.certificateProvider, c.acmeService, c.watcher)
324+
return common.Close(c.certificateProvider, c.acmeService, common.PtrOrNil(c.watcher))
325325
}
326326

327327
func NewSTDServer(ctx context.Context, logger log.ContextLogger, options option.InboundTLSOptions) (ServerConfig, error) {

0 commit comments

Comments
 (0)