Skip to content

Commit 4e45c29

Browse files
committed
loopd: fix ALPN issue with Python
There is an open issue for Python gRPC clients that is currently being debugged grpc/grpc#23172 It can be mitigated server-side by specifying h2 in the metadata header.
1 parent df5924f commit 4e45c29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loopd/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials,
319319
}
320320

321321
tlsCfg := cert.TLSConfFromCert(certData)
322+
tlsCfg.NextProtos = []string{"h2"}
322323
restCreds, err := credentials.NewClientTLSFromFile(
323324
cfg.TLSCertPath, "",
324325
)

0 commit comments

Comments
 (0)