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:
parent
79a1a67994
commit
f0bd8e9214
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue