mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Add blacklist and whitelist logic.
This commit is contained in:
parent
27d245625c
commit
40f3906115
3 changed files with 61 additions and 39 deletions
|
@ -113,10 +113,10 @@ func NewDnsProxy(s *session.Session) *DnsProxy {
|
|||
"Address to bind the DNS proxy to."))
|
||||
|
||||
mod.AddParam(session.NewStringParameter("dns.proxy.blacklist", "", "",
|
||||
"Comma separated list of hostnames to skip while proxying (wildcard expressions can be used)."))
|
||||
"Comma separated list of client IPs to skip while proxying."))
|
||||
|
||||
mod.AddParam(session.NewStringParameter("dns.proxy.whitelist", "", "",
|
||||
"Comma separated list of hostnames to proxy if the blacklist is used (wildcard expressions can be used)."))
|
||||
"Comma separated list of client IPs to proxy if the blacklist is used."))
|
||||
|
||||
mod.AddParam(session.NewStringParameter("dns.proxy.nameserver",
|
||||
"1.1.1.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue