Check fist check

This commit is contained in:
Rémi BERTHO 2021-10-04 22:51:09 +02:00
parent 186ffb822f
commit 7659338106
Signed by: dalan
GPG Key ID: EE3B917931C07B64
2 changed files with 100 additions and 91 deletions

4
TODO.md Normal file
View File

@ -0,0 +1,4 @@
# TODO
* [ ] Examples de fichiers de config
* [ ] Test à partir de ladresse IP récupéré par DNS (https://crates.io/crates/trust-dns-resolver)
* [ ] Test de lIPv6 (https://crates.io/crates/query_external_ip)

View File

@ -48,7 +48,12 @@ fn main() -> Result<()> {
error!("Error {}", e);
}
});
check()?;
// Initial check
if let Err(e) = check() {
error!("Error {}", e);
bail!("Cannot get initial IP");
}
// Run
loop {