mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-13 05:51:36 +00:00
Fix TLS server close
This commit is contained in:
parent
6af341af27
commit
96edb9a774
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue