Function check_vpn

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

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());
})