Fix for domains localhost.* and 127.0.0.1.*

This commit is contained in:
Alexey Mozzhakov 2018-06-23 19:00:13 +03:00 committed by GitHub
commit 3c53e87df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ func (p *HTTPProxy) doProxy(req *http.Request) bool {
}
for _, blacklisted := range blacklist {
if strings.HasPrefix(req.Host, blacklisted) {
if req.Host == blacklisted {
log.Error("Got request with blacklisted host: %s", req.Host)
return false
}