Skip to content

Commit

Permalink
Try fix clustering (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr authored Oct 9, 2024
1 parent 340c682 commit 9e313fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ func New(opts Options) (*Service, error) {
}

httpTransport := &http2.Transport{
AllowHTTP: false,
AllowHTTP: true,
DialTLSContext: func(ctx context.Context, network, addr string, _ *tls.Config) (net.Conn, error) {
return net.DialTimeout(network, addr, calcTimeout(ctx))
},
}
if opts.EnableTLS {
httpTransport.AllowHTTP = false
tlsConfig, err := loadTLSConfigFromFile(opts.TLSCAPath, opts.TLSCertPath, opts.TLSKeyPath, opts.TLSServerName)
if err != nil {
return nil, fmt.Errorf("failed to load TLS config from file: %w", err)
Expand Down

0 comments on commit 9e313fd

Please sign in to comment.