summaryrefslogtreecommitdiffstats
path: root/modules/hostmatcher
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for the host checking logic, clarify the behaviors (#20328)wxiaoguang2022-07-131-4/+4
| | | | | | Before, the combination of AllowedDomains/BlockedDomains/AllowLocalNetworks is confusing. This PR adds tests for the logic, clarify the behaviors.
* Support `hostname:port` to pass host matcher's check #19543 (#19543)wxiaoguang2022-04-292-2/+9
| | | hostmatcher: split the hostname from the `hostname:port` string, use the correct hostname to do the match.
* remove not needed (#19128)65432022-03-181-4/+2
|
* Simplify parameter types (#18006)Gusted2021-12-202-3/+3
| | | Remove repeated type declarations in function definitions.
* Use `hostmatcher` to replace `matchlist`, improve security (#17605)wxiaoguang2021-11-203-58/+217
| | | | | Use hostmacher to replace matchlist. And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
* Only allow webhook to send requests to allowed hosts (#17482)wxiaoguang2021-11-012-0/+213