diff options
author | darkgallium <florian+git@aloneinthedark.xyz> | 2020-05-22 16:02:31 +0200 |
---|---|---|
committer | darkgallium <florian+git@aloneinthedark.xyz> | 2020-05-24 18:14:24 +0200 |
commit | 2dbf9da005f2b86da9c6861b8f30725033b9b5f2 (patch) | |
tree | b285a2e451966e9eef5314216b4b33eddf2b3eb3 /src/main.rs | |
parent | 1a9199011d6f879ec07051db2164713e17e81b2f (diff) | |
download | diplonat-2dbf9da005f2b86da9c6861b8f30725033b9b5f2.tar.gz diplonat-2dbf9da005f2b86da9c6861b8f30725033b9b5f2.zip |
changing backend to use the cleaner ipt bindings
updating dependencies
minor fixes
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index a35916a..bf8248d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,9 @@ mod consul; mod consul_actor; mod igd_actor; mod diplonat; +mod fw; +use iptables; use log::*; use diplonat::Diplonat; @@ -12,7 +14,10 @@ use diplonat::Diplonat; async fn main() { pretty_env_logger::init(); info!("Starting Diplonat"); - + + let ipt = iptables::new(false).unwrap(); + fw::setup(&ipt).expect("iptables setup failed"); + let mut diplo = Diplonat::new().await.expect("Setup failed"); diplo.listen().await.expect("A runtime error occured"); } |