Fix create TLS config

This commit is contained in:
世界
2022-11-13 11:24:37 +08:00
parent 11076d52cd
commit ebad363201
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)
}