mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-03-21 11:05:02 +00:00
fix: whitelist domain depth, exclude subnets from verdict
This commit is contained in:
parent
3523dd30c8
commit
0fd8bc3eaf
4 changed files with 20 additions and 8 deletions
|
|
@ -135,6 +135,7 @@ async fn check(
|
|||
verdict: CheckVerdict::Clear,
|
||||
geo,
|
||||
ips,
|
||||
rkn_subnets,
|
||||
}) => Ok(Template::render(
|
||||
"result",
|
||||
context! {
|
||||
|
|
@ -143,6 +144,9 @@ async fn check(
|
|||
found: false,
|
||||
target: target.to_query(),
|
||||
target_type: target.readable_type(),
|
||||
blocked_subnets: rkn_subnets.iter()
|
||||
.map(|n| n.to_string())
|
||||
.collect::<Vec<_>>(),
|
||||
whitelist,
|
||||
ips,
|
||||
geo,
|
||||
|
|
@ -152,10 +156,10 @@ async fn check(
|
|||
verdict:
|
||||
CheckVerdict::Blocked {
|
||||
rkn_domain,
|
||||
rkn_subnets,
|
||||
cdn_provider_subnets,
|
||||
},
|
||||
geo,
|
||||
rkn_subnets,
|
||||
ips,
|
||||
}) => Ok(Template::render(
|
||||
"result",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue