mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
don't send short tunnel build messages for ElGamal only destinations
This commit is contained in:
parent
e6bcd04a36
commit
49e8cf89d8
@ -610,6 +610,9 @@ namespace tunnel
|
|||||||
Path path;
|
Path path;
|
||||||
if (SelectPeers (path, false))
|
if (SelectPeers (path, false))
|
||||||
{
|
{
|
||||||
|
if (m_LocalDestination && !m_LocalDestination->SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD))
|
||||||
|
path.isShort = false; // because can't handle ECIES encrypted reply
|
||||||
|
|
||||||
std::shared_ptr<TunnelConfig> config;
|
std::shared_ptr<TunnelConfig> config;
|
||||||
if (m_NumOutboundHops > 0)
|
if (m_NumOutboundHops > 0)
|
||||||
config = std::make_shared<TunnelConfig>(path.peers, inboundTunnel->GetNextTunnelID (),
|
config = std::make_shared<TunnelConfig>(path.peers, inboundTunnel->GetNextTunnelID (),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user