fix listener call

This commit is contained in:
vardhaman22
2023-08-23 12:49:03 +05:30
parent 10456ff2e6
commit 06acb83e5d
3 changed files with 34 additions and 34 deletions

View File

@@ -134,7 +134,7 @@ func getTLSListener(ctx context.Context, tcp net.Listener, handler http.Handler,
return nil, nil, err
}
listener, dynHandler, err := dynamiclistener.NewListener2(tcp, storage, caCert, caKey, opts.TLSListenerConfig)
listener, dynHandler, err := dynamiclistener.NewListenerWithChain(tcp, storage, caCert, caKey, opts.TLSListenerConfig)
if err != nil {
return nil, nil, err
}