mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
use shared_ptr for transit tunnels
This commit is contained in:
parent
6d892179c8
commit
79190f313d
6 changed files with 18 additions and 26 deletions
|
@ -619,9 +619,9 @@ namespace util
|
|||
s << "<b>Transit tunnels:</b><br>\r\n<br>\r\n";
|
||||
for (auto it: i2p::tunnel::tunnels.GetTransitTunnels ())
|
||||
{
|
||||
if (dynamic_cast<i2p::tunnel::TransitTunnelGateway *>(it.second))
|
||||
if (std::dynamic_pointer_cast<i2p::tunnel::TransitTunnelGateway>(it.second))
|
||||
s << it.second->GetTunnelID () << " ⇒ ";
|
||||
else if (dynamic_cast<i2p::tunnel::TransitTunnelEndpoint *>(it.second))
|
||||
else if (std::dynamic_pointer_cast<i2p::tunnel::TransitTunnelEndpoint>(it.second))
|
||||
s << " ⇒ " << it.second->GetTunnelID ();
|
||||
else
|
||||
s << " ⇒ " << it.second->GetTunnelID () << " ⇒ ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue