aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 4a08ecc..a4c4e21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,17 +6,15 @@ use log::*;
use igd::aio::search_gateway;
use igd::PortMappingProtocol;
+mod diplonat;
mod config;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
- let config = match config::load_env() {
- Ok(val) => val,
- Err(e) => return println!("unable to build configuration: {}", e),
- };
-
+ let ctx = diplonat::setup().expect("Setup failed:");
+/*
let url = format!("http://127.0.0.1:8500/v1/catalog/node/{}", config.consul_node_name);
let resp = reqwest::get(&url)
.await
@@ -37,4 +35,5 @@ async fn main() {
Ok(_) => (),
Err(e) => return println!("Unable to insert port 1234: {}", e),
};
+ */
}