diff --git a/crates/openfang-runtime/src/web_fetch.rs b/crates/openfang-runtime/src/web_fetch.rs index 85e70b79..7d318a7d 100644 --- a/crates/openfang-runtime/src/web_fetch.rs +++ b/crates/openfang-runtime/src/web_fetch.rs @@ -518,7 +518,7 @@ mod tests { let allow = vec!["*.example.com".to_string()]; assert!(check_ssrf("http://api.example.com", &allow).is_ok()); // Non-matching domain should still go through normal checks - assert!(is_host_allowed("other.net", &allow) == false); + assert!(!is_host_allowed("other.net", &allow)); } #[test]