[][src]Function no_vpn::check_vpn

pub fn check_vpn<Q>(ip: &str, end: Q) where
    Q: Send + 'static + FnOnce(Option<VpnResult>), 

This function check if an ip has an VPN You can use the following example:

no_vpn::check_vpn("IP",|result| {
    let result = result.unwrap();
    println!("VPN: {}, Country: {}",result.is_vpn(),result.get_country());
})