feat: per-suffix conditional forwarding rules (#82) #84

Merged
razvandimescu merged 4 commits from feat/config-forwarding-rules into main 2026-04-12 11:12:08 +08:00
Showing only changes of commit 5043d4612e - Show all commits

View File

@@ -689,10 +689,7 @@ mod tests {
#[test]
fn forwarding_suffix_array_expands_to_multiple_runtime_rules() {
let rule = ForwardingRuleConfig {
suffix: vec![
"168.192.in-addr.arpa".to_string(),
"onsite".to_string(),
],
suffix: vec!["168.192.in-addr.arpa".to_string(), "onsite".to_string()],
upstream: "192.168.88.1".to_string(),
};
let runtime = rule.to_runtime_rules().unwrap();