mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-15 12:50:29 +02:00
rpcserver: fix Python gRPC client ALPN property error
There is an open issue for Python gRPC clients that is currently being debugged https://github.com/grpc/grpc/issues/23172 It can be mitigated server-side by specifying h2 in the metadata header.
This commit is contained in:
parent
3c71603e5b
commit
b4666cd56a
1 changed files with 1 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials,
|
|||
}
|
||||
|
||||
tlsCfg := cert.TLSConfFromCert(certData)
|
||||
tlsCfg.NextProtos = []string{"h2"}
|
||||
restCreds, err := credentials.NewClientTLSFromFile(
|
||||
cfg.TLSCertPath, "",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue