diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2022-06-08 17:59:32 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-08-16 13:02:18 +0200 |
commit | ae1e97ce863609e06be44a2632fb9d1fbb8e5698 (patch) | |
tree | b5ac9c9787ee64b4fbd2b81016300af33391999d /src/net.h | |
parent | a1580a04f5d7c9ecb30ee0d3bfdae519843a67ac (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |