From ae1e97ce863609e06be44a2632fb9d1fbb8e5698 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Wed, 8 Jun 2022 17:59:32 +0200 Subject: net: use transient I2P session for outbound if -i2pacceptincoming=0 If not accepting I2P connections, then do not create `CConnman::m_i2p_sam_session`. When opening a new outbound I2P connection either use `CConnman::m_i2p_sam_session` like before or create a temporary one and store it in `CNode` for destruction later. --- src/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 0e4afe9fe0..7156a2259f 100644 --- a/src/net.h +++ b/src/net.h @@ -1090,7 +1090,8 @@ private: /** * I2P SAM session. - * Used to accept incoming and make outgoing I2P connections. + * Used to accept incoming and make outgoing I2P connections from a persistent + * address. */ std::unique_ptr m_i2p_sam_session; -- cgit v1.2.3