From 8c360dfed494773aae415982691806600875bcb4 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 12 Feb 2020 18:28:44 +0100 Subject: [diplonat] now belongs to an independant repo --- docker/diplomate/src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 docker/diplomate/src/main.rs (limited to 'docker/diplomate/src') diff --git a/docker/diplomate/src/main.rs b/docker/diplomate/src/main.rs deleted file mode 100644 index a676662..0000000 --- a/docker/diplomate/src/main.rs +++ /dev/null @@ -1,15 +0,0 @@ -use igd::aio::search_gateway; - -#[tokio::main] -async fn main() { - let gateway = match search_gateway(Default::default()).await { - Ok(g) => g, - Err(err) => return println!("Faild to find IGD: {}", err), - }; - - let pub_ip = match gateway.get_external_ip().await { - Ok(ip) => ip, - Err(err) => return println!("Failed to get external IP: {}", err), - }; - println!("Our public IP is {}", pub_ip); -} -- cgit v1.2.3