mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
cmd/stdiscosrv: Explicitly enable HTTP/2
The server supports it, but it's not negotiated unless explicitly allowed in the TLS config NextProtos.
This commit is contained in:
parent
3cc3fb7504
commit
acc532fc60
@ -83,6 +83,7 @@ func (s *apiSrv) Serve(_ context.Context) error {
|
||||
Certificates: []tls.Certificate{s.cert},
|
||||
ClientAuth: tls.RequestClientCert,
|
||||
MinVersion: tls.VersionTLS12,
|
||||
NextProtos: []string{"h2", "http/1.1"},
|
||||
}
|
||||
|
||||
tlsListener, err := tls.Listen("tcp", s.addr, tlsCfg)
|
||||
|
Loading…
Reference in New Issue
Block a user