mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-18 02:19:44 -07:00
slight cleanup
This commit is contained in:
@@ -19,7 +19,7 @@ pub struct Config {
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Config {
|
||||
qmdl_store_path: "/data/wavehunter".to_string(),
|
||||
qmdl_store_path: "/data/wavehunter/qmdl".to_string(),
|
||||
port: 8080,
|
||||
readonly_mode: false,
|
||||
}
|
||||
@@ -33,7 +33,7 @@ pub fn parse_config<P>(path: P) -> Result<Config, WavehunterError> where P: AsRe
|
||||
.map_err(WavehunterError::ConfigFileParsingError)?;
|
||||
if let Some(path) = parsed_config.qmdl_store_path { config.qmdl_store_path = path }
|
||||
if let Some(port) = parsed_config.port { config.port = port }
|
||||
if let Some(debug_mode) = parsed_config.readonly_mode { config.readonly_mode = debug_mode }
|
||||
if let Some(readonly_mode) = parsed_config.readonly_mode { config.readonly_mode = readonly_mode }
|
||||
}
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user