diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-05 00:02:55 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-05 00:02:55 +0000 |
commit | 1737b9d2cff9a8cacca647495ec9f07b07cde18b (patch) | |
tree | 482ed282dce46c6e7c4e58fe858da48d4fa02826 /registry/registry.go | |
parent | fcb8fcd6973a1b12fc874097918a38c0730b44f1 (diff) | |
download | communique-1737b9d2cff9a8cacca647495ec9f07b07cde18b.tar.gz |
typo
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/registry.go b/registry/registry.go index 417bb9b..d2658e5 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -164,8 +164,8 @@ func (r *Registry) Inbox(name string, req *http.Request) error { } logger := r.log.With("type", "inbox") - if req.Host != handler.handlerCfg.Name { - logger.Warnf("%s != %s, configured domain should match incoming Host: header otherwise HTTP signature verification will fail. You'll need to enable 'ProxyPreserveHost' (for apache2) or proxy_set_header Host $host; (for nginx)", req.Host, handler.handlerCfg.Name) + if req.Host != r.cfg.Domain { + logger.Warnf("%s != %s, configured domain should match incoming Host: header otherwise HTTP signature verification will fail. You'll need to enable 'ProxyPreserveHost' (for apache2) or proxy_set_header Host $host; (for nginx)", req.Host, r.cfg.Domain) } verifier, err := httpsig.NewVerifier(req) |