Skip to content

Commit c61a4fe

Browse files
authored
Update readme examples to use TLS-ALPN const from ACMEz (#277)
1 parent c82ff34 commit c61a4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ tlsConfig.NextProtos = append([]string{"h2", "http/1.1"}, tlsConfig.NextProtos..
293293
// we can simply set its GetCertificate field and append the
294294
// TLS-ALPN challenge protocol to the NextProtos
295295
myTLSConfig.GetCertificate = magic.GetCertificate
296-
myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, tlsalpn01.ACMETLS1Protocol)
296+
myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, acmez.ACMETLS1Protocol)
297297

298298
// the HTTP challenge has to be handled by your HTTP server;
299299
// if you don't have one, you should have disabled it earlier
@@ -380,7 +380,7 @@ Or make two simple changes to an existing `tls.Config`:
380380

381381
```go
382382
myTLSConfig.GetCertificate = magic.GetCertificate
383-
myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, tlsalpn01.ACMETLS1Protocol}
383+
myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, acmez.ACMETLS1Protocol}
384384
```
385385

386386
Then just make sure your TLS listener is listening on port 443:

0 commit comments

Comments
 (0)