use std::net::{IpAddr,Ipv4Addr};
mod spf;
mod workers;
mod config;
use config::{SpfConfig,SpfLookup};
#[tokio::main]
async fn main() {
let config:SpfConfig;
match SpfConfig::new(){
Ok(v)=>{config = v;},
Err(_)=>{
return;
}
}
if true{
match spf::check(
&config,
IpAddr::V4(Ipv4Addr::new(209,85,215,172)),
&String::from("mail-pg1-f172.google.com"),
&String::from("gmail.com")
).await{
Ok(_)=>{},
Err(_)=>{}
}
}
}