From df74dd6910608b079531ed69577b3b5654218f4b Mon Sep 17 00:00:00 2001 From: Piotr <17101802+thampiotr@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:45:21 +0100 Subject: [PATCH] Try fix clustering --- internal/service/cluster/cluster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/service/cluster/cluster.go b/internal/service/cluster/cluster.go index 0c81fc8d1..1b4db5588 100644 --- a/internal/service/cluster/cluster.go +++ b/internal/service/cluster/cluster.go @@ -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)