mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-11 02:58:10 -07:00
address most of wills review feedback, fix serialization and stringly error handling in DiagTask::start
This commit is contained in:
committed by
Will Greenberg
parent
a58bad09fc
commit
bd5dfb1a75
+1
-3
@@ -306,14 +306,12 @@ async fn run_with_config(
|
||||
config.webdav.clone().into(),
|
||||
);
|
||||
}
|
||||
// For fixed configuration, we use timestamp 0 to not break other
|
||||
// the GET request for GPS but user won't see the 0 in PCAPs
|
||||
let initial_gps = if config.gps_mode == GpsMode::Fixed {
|
||||
match (config.gps_fixed_latitude, config.gps_fixed_longitude) {
|
||||
(Some(lat), Some(lon)) => Some(gps::GpsData {
|
||||
latitude: lat,
|
||||
longitude: lon,
|
||||
timestamp: 0,
|
||||
timestamp: chrono::Utc::now().timestamp(),
|
||||
}),
|
||||
_ => {
|
||||
warn!(
|
||||
|
||||
Reference in New Issue
Block a user