aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 4cd57c5f7f81234c2646bfae0a0f36e63ab58946 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mod config;
mod consul;
mod consul_actor;
mod diplonat;
mod fw;
mod fw_actor;
mod igd_actor;
mod messages;
mod stun_actor;

use diplonat::Diplonat;
use log::*;

#[tokio::main]
async fn main() {
  pretty_env_logger::init();
  info!("Starting Diplonat");

  Diplonat::new()
    .await
    .expect("Setup failed")
    .listen()
    .await
    .expect("A runtime error occured");
}