diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2020-07-30 15:18:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 15:18:14 -0600 |
commit | 6a14e2c2a8881d5e90f1ee363ec4662a3f87402b (patch) | |
tree | 3d10bdfe62e709e70e16725659e860bee20ca8e6 /modules/caddytls/connpolicy.go | |
parent | 2bc30bb780f3b93593a2a9e42db6ab215fe12902 (diff) |
caddytls: Replace lego with acmez (#3621)
* Replace lego with acmez; upgrade CertMagic
* Update integration test
Diffstat (limited to 'modules/caddytls/connpolicy.go')
-rw-r--r-- | modules/caddytls/connpolicy.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/caddytls/connpolicy.go b/modules/caddytls/connpolicy.go index fec1fe2..7eda002 100644 --- a/modules/caddytls/connpolicy.go +++ b/modules/caddytls/connpolicy.go @@ -22,12 +22,12 @@ import ( "strings" "github.com/caddyserver/caddy/v2" - "github.com/go-acme/lego/v3/challenge/tlsalpn01" + "github.com/mholt/acmez" ) -// ConnectionPolicies is an ordered group of connection policies; -// the first matching policy will be used to configure TLS -// connections at handshake-time. +// ConnectionPolicies govern the establishment of TLS connections. It is +// an ordered group of connection policies; the first matching policy will +// be used to configure TLS connections at handshake-time. type ConnectionPolicies []*ConnectionPolicy // Provision sets up each connection policy. It should be called @@ -229,13 +229,13 @@ func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) error { // ensure ALPN includes the ACME TLS-ALPN protocol var alpnFound bool for _, a := range p.ALPN { - if a == tlsalpn01.ACMETLS1Protocol { + if a == acmez.ACMETLS1Protocol { alpnFound = true break } } if !alpnFound { - cfg.NextProtos = append(cfg.NextProtos, tlsalpn01.ACMETLS1Protocol) + cfg.NextProtos = append(cfg.NextProtos, acmez.ACMETLS1Protocol) } // min and max protocol versions |