Fix tls-alpn-01 challenge errors

certmagic's NextProtos contains acmez.ACMETLS1Protocol. We mustn't
overwrite it, otherwise tls-alpn-01 challenges will fail.
This commit is contained in:
Simon Ser 2021-02-18 16:05:45 +01:00
parent 79a1a67994
commit f0bd8e9214
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (ln *Listener) handle(conn net.Conn) error {
return nil, err return nil, err
} }
tlsConfig.NextProtos = fe.Protocols tlsConfig.NextProtos = append(tlsConfig.NextProtos, fe.Protocols...)
return tlsConfig, nil return tlsConfig, nil
} }
tlsConn := tls.Server(conn, tlsConfig) tlsConn := tls.Server(conn, tlsConfig)