Check fist check
This commit is contained in:
parent
186ffb822f
commit
7659338106
2 changed files with 100 additions and 91 deletions
4
TODO.md
Normal file
4
TODO.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# TODO
|
||||||
|
* [ ] Examples de fichiers de config
|
||||||
|
* [ ] Test à partir de l’adresse IP récupéré par DNS (https://crates.io/crates/trust-dns-resolver)
|
||||||
|
* [ ] Test de l’IPv6 (https://crates.io/crates/query_external_ip)
|
|
@ -48,7 +48,12 @@ fn main() -> Result<()> {
|
||||||
error!("Error {}", e);
|
error!("Error {}", e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
check()?;
|
|
||||||
|
// Initial check
|
||||||
|
if let Err(e) = check() {
|
||||||
|
error!("Error {}", e);
|
||||||
|
bail!("Cannot get initial IP");
|
||||||
|
}
|
||||||
|
|
||||||
// Run
|
// Run
|
||||||
loop {
|
loop {
|
||||||
|
|
Loading…
Reference in a new issue