Browse Source

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 2 months ago
parent
commit
4e45c2908a
No known key found for this signature in database GPG Key ID: 8E4256593F177720
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      loopd/config.go

+ 1
- 0
loopd/config.go View File

@ -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