From 60a0d7f293632299901f2c81c8b4141f3c67bdc3 Mon Sep 17 00:00:00 2001 From: glyph Date: Thu, 13 Jan 2022 15:47:43 +0200 Subject: [PATCH] set global vars for iface names --- peach-web/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peach-web/src/main.rs b/peach-web/src/main.rs index 92528d6..56c8f75 100644 --- a/peach-web/src/main.rs +++ b/peach-web/src/main.rs @@ -24,6 +24,7 @@ #![feature(proc_macro_hygiene, decl_macro)] +mod context; pub mod error; mod router; pub mod routes; @@ -48,6 +49,9 @@ lazy_static! { }; } +static WLAN_IFACE: &str = "wlan0"; +static AP_IFACE: &str = "ap0"; + pub fn init_rocket() -> Rocket { info!("Initializing Rocket"); if *STANDALONE_MODE {