mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Fix for requests with port specified
This commit is contained in:
parent
3c53e87df7
commit
18c74ce6ef
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 {
|
||||
if req.Host == blacklisted {
|
||||
if strings.Split(req.Host, ":")[0] == blacklisted {
|
||||
log.Error("Got request with blacklisted host: %s", req.Host)
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue