diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-07-12 10:35:37 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-07-12 10:35:37 +0300 |
commit | 1a2e2229f52436bcd1c82078817884d742b1bf56 (patch) | |
tree | 3935a49f9adb11b0e757a0c2c4b0380fbcf4e019 | |
parent | d4999085ef28c03a67d2b27cf356ffa42d6195cb (diff) |
print addresses588-verify-domain-certs
-rw-r--r-- | app.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -70,7 +70,11 @@ func (a *theApp) ServeTLS(ch *cryptotls.ClientHelloInfo) (*cryptotls.Certificate if domain, _ := a.domain(context.Background(), ch.ServerName); domain != nil { tls, err := domain.EnsureCertificate() if err != nil { - log.WithField("pages_host", domain.Name).WithError(err).Warn("failed to load certificate for custom domain") + log.WithFields(log.Fields{ + "pages_host": domain.Name, + "local_addr": ch.Conn.LocalAddr().String(), + "remote_addr": ch.Conn.RemoteAddr().String(), + }).WithError(err).Warn("failed to load certificate for custom domain") } return tls, nil |