From 96edb9a774f4d4a02d75883664903f1d14c8c119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 12 May 2026 15:01:56 +0800 Subject: [PATCH] Fix TLS server close --- common/tls/std_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tls/std_server.go b/common/tls/std_server.go index b673c367c..cd515d111 100644 --- a/common/tls/std_server.go +++ b/common/tls/std_server.go @@ -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) {