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.
pull/404/head
Oliver Gugger 3 years ago
parent df5924f25a
commit 4e45c2908a
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -319,6 +319,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials,
}
tlsCfg := cert.TLSConfFromCert(certData)
tlsCfg.NextProtos = []string{"h2"}
restCreds, err := credentials.NewClientTLSFromFile(
cfg.TLSCertPath, "",
)

Loading…
Cancel
Save