set global vars for iface names

This commit is contained in:
glyph 2022-01-13 15:47:43 +02:00
parent d8c40e0724
commit 60a0d7f293
1 changed files with 4 additions and 0 deletions

View File

@ -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<Build> {
info!("Initializing Rocket");
if *STANDALONE_MODE {