diff --git a/config.example.toml b/config.example.toml index a662c67e7dc1a891d29ecfd302904aea6ab5ceb2..fe186584f49c963f0e58ebdd967561ab223faf52 100644 --- a/config.example.toml +++ b/config.example.toml @@ -23,7 +23,6 @@ ssid = 0 [felinet.beacon] period_seconds = 120 icon = 0 -max_hops = 3 latitude = 45.0 longitude = -66.0 altitude = 30 # meters diff --git a/src/config.rs b/src/config.rs index 7c4a853373366b1ca3ad7e5f68f5f5ac4b5edf95..b411dd368cba394831b11b63a8ac9855c2c0ae78 100644 --- a/src/config.rs +++ b/src/config.rs @@ -14,8 +14,6 @@ pub struct BeaconConfig { #[serde_as(as = "DurationSeconds<u64>")] pub period_seconds: Duration, pub icon: u16, - #[serde(default)] - pub max_hops: u8, pub latitude: Option<f64>, pub longitude: Option<f64>, pub altitude: Option<f64>, diff --git a/src/gate.rs b/src/gate.rs index 5d4979eae56ecff0d1031e6af26b601d723aebd5..3395b5107ac1accf12c42fdd28070b63c795abb4 100644 --- a/src/gate.rs +++ b/src/gate.rs @@ -80,7 +80,7 @@ pub fn beacon_forever( .add_node_info(info_builder.build()) .map_err(|e| anyhow!("Could not add info to beacon packet: {e}"))?; - let mut r = Route::new(c.beacon.max_hops); + let mut r = Route::new(0); r.push_internet().context("Could not create beacon route")?; packet .add_route(r)