Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AGMETEOR committed Apr 4, 2024
1 parent 5c85477 commit 31fea8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxyfilters/blocklocal.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func BlockLocal(exceptions []string) filters.Filter {
}
}

// Note: It is important to pass Host as an already resolved and vetted IP in order to avoid
// DNS rebind attacks should there be any other dialers, that attempt to resolve the host down in the execution path
req.URL.Host = fmt.Sprintf("%s:%s", ipAddr.String(), port)

return next(cs, req)
Expand Down

0 comments on commit 31fea8b

Please sign in to comment.