mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
don't check TRANSIENT destination
This commit is contained in:
parent
560ebcec8d
commit
9e9236badb
@ -367,13 +367,16 @@ namespace client
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//ensure it's a base64 string
|
if (destination != SAM_VALUE_TRANSIENT)
|
||||||
i2p::data::PrivateKeys keys;
|
{
|
||||||
if (!keys.FromBase64(destination))
|
//ensure it's a base64 string
|
||||||
{
|
i2p::data::PrivateKeys keys;
|
||||||
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
|
if (!keys.FromBase64(destination))
|
||||||
return;
|
{
|
||||||
}
|
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// create destination
|
// create destination
|
||||||
auto session = m_Owner.CreateSession (id, destination == SAM_VALUE_TRANSIENT ? "" : destination, ¶ms);
|
auto session = m_Owner.CreateSession (id, destination == SAM_VALUE_TRANSIENT ? "" : destination, ¶ms);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user