mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
fixed #994. check if keys are set
This commit is contained in:
parent
d14c6e2829
commit
2bc33f22df
1 changed files with 4 additions and 1 deletions
|
@ -448,7 +448,10 @@ namespace client
|
||||||
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "BOB: getdest");
|
LogPrint (eLogDebug, "BOB: getdest");
|
||||||
SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ());
|
if (m_Keys.GetPublic ()) // keys are set ?
|
||||||
|
SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ());
|
||||||
|
else
|
||||||
|
SendReplyError ("keys are not set");
|
||||||
}
|
}
|
||||||
|
|
||||||
void BOBCommandSession::OuthostCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::OuthostCommandHandler (const char * operand, size_t len)
|
||||||
|
|
Loading…
Add table
Reference in a new issue