aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2022-06-08 17:59:32 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-08-16 13:02:18 +0200
commitae1e97ce863609e06be44a2632fb9d1fbb8e5698 (patch)
treeb5ac9c9787ee64b4fbd2b81016300af33391999d /src/net.h
parenta1580a04f5d7c9ecb30ee0d3bfdae519843a67ac (diff)
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.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
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<i2p::sam::Session> m_i2p_sam_session;