diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index 346baf29..4cae9cb7 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -546,7 +546,7 @@ namespace client } UDPSession::UDPSession(boost::asio::io_service & ios, boost::asio::ip::udp::endpoint localEndpoint, const std::shared_ptr & localDestination, boost::asio::ip::udp::endpoint endpoint, const i2p::data::IdentHash to, uint16_t ourPort, uint16_t theirPort) : - m_Destination(localDestination), + m_Destination(localDestination.get()), IPSocket(ios, localEndpoint), Identity(to), SendEndpoint(endpoint), diff --git a/I2PTunnel.h b/I2PTunnel.h index 75eeaaef..ca5c8cc9 100644 --- a/I2PTunnel.h +++ b/I2PTunnel.h @@ -140,7 +140,7 @@ namespace client struct UDPSession { - std::shared_ptr m_Destination; + i2p::client::ClientDestination * m_Destination; boost::asio::ip::udp::socket IPSocket; i2p::data::IdentHash Identity; boost::asio::ip::udp::endpoint FromEndpoint;