1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-04-28 00:35:05 +02:00

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

View File

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