i2p: announce one discoverable interface at its own b32 and keep peers at Python's defaults

This commit is contained in:
DeFiDude committed 2026-10-25 03:34:53 -06:00
1 parent 53515b3d41
commit f3f72ead60
7 files changed
+411 -35

No files matched your search

+4
View File
@@ -42,6 +42,10 @@ reports an unqualified filesystem. `persistence::storage_risk` classifies networ
or user-space (`Remote`) and RAM-backed (`Volatile`) storage so applications can
warn their users.
`I2PServerConfig` gains `b32`, which receives the server's b32 address when
SAM creates its session, and `i2p::destination_b32` derives that address from
a SAM private key; build the config with `new`.
`TunnelEntry::interface_id` is now `Option<InterfaceId>`, `None` while the
tunnel is unbound, instead of the id-0 sentinel. `spawn_local_server` and
`spawn_i2p_server` take the listener's allocated `InterfaceId`, which their
+2
View File
@@ -459,6 +459,7 @@ pub rns_interface::i2p::I2PClientConfig::tunnel_identity: core::option::Option<r
impl rns_interface::i2p::I2PClientConfig
pub fn rns_interface::i2p::I2PClientConfig::new(&str, &str) -> Self
pub struct rns_interface::i2p::I2PServerConfig
pub rns_interface::i2p::I2PServerConfig::b32: core::option::Option<tokio::sync::watch::Sender<core::option::Option<alloc::string::String>>>
pub rns_interface::i2p::I2PServerConfig::keyfile: core::option::Option<alloc::string::String>
pub rns_interface::i2p::I2PServerConfig::mode: rns_interface::traits::InterfaceMode
pub rns_interface::i2p::I2PServerConfig::name: alloc::string::String
@@ -480,6 +481,7 @@ pub const rns_interface::i2p::RECONNECT_WAIT: u64
pub const rns_interface::i2p::RECONNECT_WAIT_MAX: u64
pub const rns_interface::i2p::SAM_VERSION: &str
pub const rns_interface::i2p::TUNNEL_KEEPALIVE: u64
pub fn rns_interface::i2p::destination_b32(&str) -> core::option::Option<alloc::string::String>
pub fn rns_interface::i2p::parse_sam_reply(&str) -> alloc::vec::Vec<(alloc::string::String, alloc::string::String)>
pub fn rns_interface::i2p::sam_reply_get<'a>(&'a [(alloc::string::String, alloc::string::String)], &str) -> core::option::Option<&'a str>
pub fn rns_interface::i2p::sam_reply_has_token(&[(alloc::string::String, alloc::string::String)], &str) -> bool
+2 -2
View File
@@ -78,8 +78,8 @@
"tier": "candidate-stable",
"compatibility": "reviewed-snapshot",
"snapshot": "api/snapshots/rns-interface.txt",
"itemCount": 1428,
"sha256": "e34b67309d70de46edbcec1941517a5602603bdf76a1944e249bd3fa95bf2146"
"itemCount": 1430,
"sha256": "00ef8baba7b42d50c77748061dc1ed3cf4c3fbf0d6b5756ac316f2a5e0cb5731"
},
{
"name": "rns-runtime",