commit 1f586f9562a3091e67fbbd2d914fa7cfd9da8432
parent 604e227bba685c7a51cafaf881adcc01d79cbee6
Author: Daniel Barlow <dan@telent.net>
Date: Fri, 12 Dec 2025 23:31:25 +0000
mdns: set transport ttl to 1 - packets should not be forwarded
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/wifi.rs b/src/wifi.rs
@@ -35,6 +35,7 @@ use esp_radio::{
use dns_protocol::{Message, Question,
MessageType,
+ Label,
ResourceRecord, ResourceType, Flags};
// When you are okay with using a nightly compiler it's better to use https://docs.rs/static_cell/2.1.0/static_cell/macro.make_static.html
@@ -112,6 +113,7 @@ pub async fn start_wifi(spawner: &Spawner,
&mut tx_meta,
&mut tx_buffer,
);
+ sock.set_hop_limit(Some(1));
log::info!("sock.bind(5353) res: {:?}", sock.bind(MDNS_PORT));
log::info!(