mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
cumulative update
This commit is contained in:
parent
30b80beb1b
commit
cee2d171f4
17 changed files with 86 additions and 88 deletions
|
@ -40,14 +40,27 @@ namespace i2p
|
|||
|
||||
m_RouterInfo.AddNTCPAddress ("127.0.0.1", 17007); // TODO:
|
||||
m_RouterInfo.SetProperty ("caps", "LR");
|
||||
m_RouterInfo.SetProperty ("coreVersion", "0.9.7");
|
||||
m_RouterInfo.SetProperty ("coreVersion", "0.9.8.1");
|
||||
m_RouterInfo.SetProperty ("netId", "2");
|
||||
m_RouterInfo.SetProperty ("router.version", "0.9.7");
|
||||
m_RouterInfo.SetProperty ("router.version", "0.9.8.1");
|
||||
m_RouterInfo.SetProperty ("start_uptime", "90m");
|
||||
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
}
|
||||
|
||||
void RouterContext::OverrideNTCPAddress (const char * host, int port)
|
||||
{
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
auto address = m_RouterInfo.GetNTCPAddress ();
|
||||
if (address)
|
||||
{
|
||||
address->host = host;
|
||||
address->port = port;
|
||||
}
|
||||
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
}
|
||||
|
||||
void RouterContext::Sign (uint8_t * buf, int len, uint8_t * signature)
|
||||
{
|
||||
CryptoPP::DSA::Signer signer (m_SigningPrivateKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue