antivm 1.2.0

Anti virtualmachine or sites for check you program
1
2
3
4
5
6
7
8
9
10
11
12
use crate::agent::build_agent;
use crate::protection::Protection;

impl Protection {
    pub(crate) fn check_http(&self) {
        let agent = build_agent(self.timeout_secs);
        match agent.get(&self.http_url).call() {
            Ok(_) => self.on_fail(),
            Err(_) => {}
        }
    }
}