fix: whitelist domain depth, exclude subnets from verdict

This commit is contained in:
Lowder 2025-12-11 01:23:00 +05:00
parent 3523dd30c8
commit 0fd8bc3eaf
No known key found for this signature in database
GPG key ID: E63B80B1F1DC187C
4 changed files with 20 additions and 8 deletions

View file

@ -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",