Skip to main content

sidedns_core/
lib.rs

1pub mod certs;
2mod config;
3mod dns;
4pub mod ipc;
5pub mod logging;
6mod proxy;
7mod rule;
8mod runner;
9mod state;
10pub mod store;
11
12pub use config::*;
13pub use dns::platform_dns_manager;
14pub use ipc::{DnsEvent, IpcClient, IpcRequest, IpcResponse};
15pub use logging::init as init_logging;
16pub use rule::DnsRule;
17pub use runner::run;
18pub use state::{AppState, SharedState};
19pub use store::RuleStore;
20
21pub fn validate_domain(domain: &str) -> bool {
22    domain.len() < 253 && DOMAIN_REGEX.is_match(domain)
23}