use igd::aio::Gateway; use igd::aio::search_gateway; use anyhow::{Result, Context}; use log::*; pub async fn get_gateway() -> Result { let gw = search_gateway(Default::default()) .await .context("Failed to find gateway")?; info!("Gateway: {}", gw); return Ok(gw); }