diff options
author | Alan Pearce | 2024-07-02 11:47:36 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-02 11:47:36 +0200 |
commit | b22ceb6c830f07061e5e16e1428438b495efe9d6 (patch) | |
tree | d84d2cc9c0c58b3ceeb33458f37691473f3457a9 /internal/server/tls.go | |
parent | a14e030b41799ea65e026d600ce18a48507bebd0 (diff) | |
download | website-b22ceb6c830f07061e5e16e1428438b495efe9d6.tar.lz website-b22ceb6c830f07061e5e16e1428438b495efe9d6.tar.zst website-b22ceb6c830f07061e5e16e1428438b495efe9d6.zip |
fix inconsistent handling of IPv6 listen address
Diffstat (limited to 'internal/server/tls.go')
-rw-r--r-- | internal/server/tls.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go index 655455c..cd2bfb8 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -56,16 +56,11 @@ func (s *Server) serveTLS() (err error) { // caddy's ACME server (step-ca) doesn't specify an OCSP server cfg.OCSP.DisableStapling = true - listenAddress := s.runtimeConfig.ListenAddress - if listenAddress[0] == '[' { - listenAddress = listenAddress[1 : len(listenAddress)-1] - } - issuer = certmagic.NewACMEIssuer(cfg, certmagic.ACMEIssuer{ CA: s.runtimeConfig.ACMECA, TrustedRoots: cp, DisableTLSALPNChallenge: true, - ListenHost: listenAddress, + ListenHost: s.runtimeConfig.ListenAddress, AltHTTPPort: s.runtimeConfig.Port, AltTLSALPNPort: s.runtimeConfig.TLSPort, }) |