aboutsummaryrefslogtreecommitdiff
path: root/docker/diplomate/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-02-12 18:28:44 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-02-12 18:28:44 +0100
commit8c360dfed494773aae415982691806600875bcb4 (patch)
tree477144aa37f6f8ad51edb21ee96201c6518a2847 /docker/diplomate/src
parent9e5839765a5578fb3ca63fbe55eeba96c14969b6 (diff)
downloadinfrastructure-8c360dfed494773aae415982691806600875bcb4.tar.gz
infrastructure-8c360dfed494773aae415982691806600875bcb4.zip
[diplonat] now belongs to an independant repo
Diffstat (limited to 'docker/diplomate/src')
-rw-r--r--docker/diplomate/src/main.rs15
1 files changed, 0 insertions, 15 deletions
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);
-}