i2p: log the reachable b32 address once the server session is up, as upstream does

This commit is contained in:
DeFiDude committed 2026-11-16 15:41:35 -07:00
1 parent 19e65d4da9
commit 73ca12852d
2 files changed
+9 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
## Unreleased
- Bluetooth Peer runs in Gateway mode, so a node with transport on looks up the paths its Bluetooth peers ask for that it doesn't know yet. Nodes with transport off behave as before.
- I2P interfaces log their `.b32.i2p` address once reachable, at loglevel 5 or higher, as Python Reticulum does.
- Announce handler events carry `emitted`, the time the announcer stamped into the announce, so an application can tell an older cached announce in a path response from a newer one. `AnnounceHandlerEvent` struct literals need the new field.
## 1.5.0 - 2026-11-13
+8 -1
View File
@@ -873,6 +873,7 @@ pub async fn spawn_i2p_server(
let parent_rxb = server_rxb.clone();
let parent_txb = server_txb.clone();
let server_identity = InterfaceIdentity::bracketed("I2PInterface", &name);
let python_name = server_identity.name.clone();
let b32 = config.b32.as_ref().map(|b32| b32.subscribe());
let online_task = online.clone();
@@ -962,8 +963,14 @@ pub async fn spawn_i2p_server(
"I2P server: failed to store its private key; its address changes with the next session"
);
}
let address = destination_b32(&our_dest);
if let Some(address) = &address {
tracing::debug!(
"{python_name} endpoint setup complete. Now reachable at: {address}.b32.i2p"
);
}
if let Some(b32) = &config.b32 {
b32.send_replace(destination_b32(&our_dest));
b32.send_replace(address);
}
online_task.store(true, Ordering::SeqCst);