mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-07-19 21:08:40 +08:00
Fix TLS server close
This commit is contained in:
parent
fdab3c1b95
commit
73cee034c5
@ -321,7 +321,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…
Reference in New Issue
Block a user