mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-29 20:39:26 -07:00
slight cleanup
This commit is contained in:
@@ -4,6 +4,7 @@ rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
[alias]
|
||||
test_pc = "test --target=x86_64-unknown-linux-gnu"
|
||||
debug_pc = "--target=x86_64-unknown-linux-gnu"
|
||||
|
||||
[target.armv7-unknown-linux-gnueabihf]
|
||||
linker = "arm-linux-gnueabihf-gcc"
|
||||
|
||||
4
make.sh
4
make.sh
@@ -1,2 +1,2 @@
|
||||
cargo build --release
|
||||
adb push target/armv7-unknown-linux-gnueabihf/release/wavehunter /data/wavehunter/wavehunter
|
||||
cargo build
|
||||
adb push target/armv7-unknown-linux-gnueabihf/debug/wavehunter /data/wavehunter/wavehunter
|
||||
|
||||
@@ -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