Fix create TLS config

This commit is contained in:
世界
2022-11-13 11:24:37 +08:00
parent 4d3dde7776
commit 100d0a32f4
5 changed files with 73 additions and 3 deletions

View File

@@ -12,6 +12,9 @@ import (
)
func NewServer(ctx context.Context, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) {
if !options.Enabled {
return nil, nil
}
return NewSTDServer(ctx, logger, options)
}