mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Fix for domains localhost.* and 127.0.0.1.*
This commit is contained in:
parent
92169f4fab
commit
3c53e87df7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func (p *HTTPProxy) doProxy(req *http.Request) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, blacklisted := range blacklist {
|
for _, blacklisted := range blacklist {
|
||||||
if strings.HasPrefix(req.Host, blacklisted) {
|
if req.Host == blacklisted {
|
||||||
log.Error("Got request with blacklisted host: %s", req.Host)
|
log.Error("Got request with blacklisted host: %s", req.Host)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue