set global vars for iface names
This commit is contained in:
parent
d8c40e0724
commit
60a0d7f293
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue