diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 99d38f5..4cd57c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ mod fw; mod fw_actor; mod igd_actor; mod messages; +mod stun_actor; use diplonat::Diplonat; use log::*; @@ -15,6 +16,10 @@ async fn main() { pretty_env_logger::init(); info!("Starting Diplonat"); - let mut diplo = Diplonat::new().await.expect("Setup failed"); - diplo.listen().await.expect("A runtime error occured"); + Diplonat::new() + .await + .expect("Setup failed") + .listen() + .await + .expect("A runtime error occured"); } |