aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/hits.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/server/hits.go')
-rw-r--r--cmd/server/hits.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/server/hits.go b/cmd/server/hits.go
index 27bb11d..e5aaf73 100644
--- a/cmd/server/hits.go
+++ b/cmd/server/hits.go
@@ -99,12 +99,15 @@ func verifyHit(db sws.SiteGetter, h *sws.Hit) (*sws.Site, error) {
return nil, err
}
if site.Name == h.Host {
+ debug(h.Host, "equals site name:", site.Name)
return site, nil
}
if strings.Contains(site.Aliases, h.Host) {
+ debug(h.Host, "equals site alias:", site.Name)
return site, nil
}
if site.AcceptSubdomains && strings.HasSuffix(h.Host, site.Name) {
+ debug(h.Host, "is subdomain:", site.Name)
return site, nil
}
return nil, fmt.Errorf("invalid host")