Retry checking refactored using util function.

This commit is contained in:
Musab Gültekin committed 2021-04-14 09:32:42 +03:00
1 parent 46c4db6b1a
commit be4d13c0ef
3 files changed
+18 -10

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ type AllowedDomains struct {
}
func (a *AllowedDomains) ProcessRequest(r *client.Request) {
if len(a.AllowedDomains) != 0 && !internal.Contains(a.AllowedDomains, r.Host) {
if len(a.AllowedDomains) != 0 && !internal.ContainsString(a.AllowedDomains, r.Host) {
if _, logged := a.logOnlyOnce.LoadOrStore(r.Host, struct{}{}); !logged {
internal.Logger.Printf("Domain not allowed: %s\n", r.Host)
}