mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
don't check TRANSIENT destination
This commit is contained in:
parent
560ebcec8d
commit
9e9236badb
|
@ -367,6 +367,8 @@ namespace client
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (destination != SAM_VALUE_TRANSIENT)
|
||||||
|
{
|
||||||
//ensure it's a base64 string
|
//ensure it's a base64 string
|
||||||
i2p::data::PrivateKeys keys;
|
i2p::data::PrivateKeys keys;
|
||||||
if (!keys.FromBase64(destination))
|
if (!keys.FromBase64(destination))
|
||||||
|
@ -374,6 +376,7 @@ namespace client
|
||||||
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
|
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
|
||||||
return;
|
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…
Reference in a new issue