From 9e313fd2216b8d90dba76936f695fdd625c43bd9 Mon Sep 17 00:00:00 2001 From: Piotr <17101802+thampiotr@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:52:56 +0100 Subject: [PATCH] Try fix clustering (#1851) --- 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 0c81fc8d1e..1b4db5588e 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)