Merge pull request #404 from guggero/fix-alpn-error

loopd: fix ALPN issue with Python
pull/408/head
Oliver Gugger 3 years ago committed by GitHub
commit 7091b90e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -19,3 +19,7 @@ This file tracks release notes for the loop client.
#### Breaking Changes #### Breaking Changes
#### Bug Fixes #### Bug Fixes
- Certain versions of the Python gRPC library
[weren't able to connect](https://github.com/grpc/grpc/issues/23172) to
`loopd`'s gRPC interface, getting the `missing selected ALPN property` error.
A server side fix was introduced to get rid of that error message.

Loading…
Cancel
Save