diff options
Diffstat (limited to 'src/gw.rs')
-rw-r--r-- | src/gw.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gw.rs b/src/gw.rs deleted file mode 100644 index 4489cf9..0000000 --- a/src/gw.rs +++ /dev/null @@ -1,12 +0,0 @@ -use igd::aio::search_gateway; -use anyhow::{Result, Context}; -use log::*; - -pub async fn get_gateway() -> Result<igd::aio::Gateway> { - let gw = search_gateway(Default::default()) - .await - .context("Failed to find gateway")?; - - info!("Gateway: {}", gw); - return Ok(gw); -} |