mirror of https://github.com/Revertron/Alfis
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
332 B
Rust
14 lines
332 B
Rust
use crate::dns::protocol::{DnsPacket, QueryType};
|
|
|
|
pub trait DnsFilter {
|
|
fn lookup(&self, qname: &str, qtype: QueryType) -> Option<DnsPacket>;
|
|
}
|
|
|
|
pub struct DummyFilter {}
|
|
|
|
#[allow(unused_variables)]
|
|
impl DnsFilter for DummyFilter {
|
|
fn lookup(&self, qname: &str, qtype: QueryType) -> Option<DnsPacket> {
|
|
None
|
|
}
|
|
} |