mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-15 18:46:52 +02:00
eliminate unnecessary const_cast
This commit is contained in:
parent
ec5eafafeb
commit
c266575528
7 changed files with 26 additions and 26 deletions
|
@ -55,8 +55,7 @@ namespace i2p
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: do it for SSU only
|
||||
DetectExternalIP ();
|
||||
//DetectExternalIP ();
|
||||
}
|
||||
|
||||
void Transports::Stop ()
|
||||
|
@ -189,7 +188,7 @@ namespace i2p
|
|||
{
|
||||
auto router = i2p::data::netdb.GetRandomRouter ();
|
||||
if (router && router->IsSSU () && m_SSUServer)
|
||||
m_SSUServer->GetSession (const_cast<i2p::data::RouterInfo *>(router)); //TODO
|
||||
m_SSUServer->GetSession (router);
|
||||
}
|
||||
if (m_Timer)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue