mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
external IP detection
This commit is contained in:
parent
74e1840bad
commit
ec5eafafeb
8 changed files with 106 additions and 9 deletions
|
@ -52,6 +52,13 @@ namespace i2p
|
|||
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
}
|
||||
|
||||
void RouterContext::UpdateAddress (const char * host)
|
||||
{
|
||||
for (auto& address : m_RouterInfo.GetAddresses ())
|
||||
address.host = boost::asio::ip::address::from_string (host);
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
}
|
||||
|
||||
void RouterContext::Sign (uint8_t * buf, int len, uint8_t * signature)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue