Add custom tls client support for std grpc

This commit is contained in:
世界
2022-11-09 11:43:03 +08:00
parent 518b246038
commit d9d39454a9
27 changed files with 551 additions and 183 deletions

View File

@@ -12,7 +12,7 @@ import (
)
func NewServer(ctx context.Context, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) {
return newSTDServer(ctx, logger, options)
return NewSTDServer(ctx, logger, options)
}
func ServerHandshake(ctx context.Context, conn net.Conn, config ServerConfig) (Conn, error) {