1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00
This commit is contained in:
Jeff Becker 2016-08-21 22:29:55 -04:00
parent 3f63732c31
commit b977050caf
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
2 changed files with 5 additions and 5 deletions

View File

@ -812,10 +812,10 @@ namespace client
return dest; return dest;
} }
std::shared_ptr<i2p::datagram::DatagramDestination> ClientDestination::CreateDatagramDestination () i2p::datagram::DatagramDestination * ClientDestination::CreateDatagramDestination ()
{ {
if (m_DatagramDestination == nullptr) if (m_DatagramDestination == nullptr)
m_DatagramDestination = std::make_shared<i2p::datagram::DatagramDestination> (GetSharedFromThis ()); m_DatagramDestination = new i2p::datagram::DatagramDestination (GetSharedFromThis ());
return m_DatagramDestination; return m_DatagramDestination;
} }

View File

@ -164,8 +164,8 @@ namespace client
bool IsAcceptingStreams () const; bool IsAcceptingStreams () const;
// datagram // datagram
std::shared_ptr<i2p::datagram::DatagramDestination> GetDatagramDestination () const { return m_DatagramDestination; }; i2p::datagram::DatagramDestination * GetDatagramDestination () const { return m_DatagramDestination; };
std::shared_ptr<i2p::datagram::DatagramDestination> CreateDatagramDestination (); i2p::datagram::DatagramDestination * CreateDatagramDestination ();
// implements LocalDestination // implements LocalDestination
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; }; const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
@ -190,7 +190,7 @@ namespace client
std::shared_ptr<i2p::stream::StreamingDestination> m_StreamingDestination; // default std::shared_ptr<i2p::stream::StreamingDestination> m_StreamingDestination; // default
std::map<uint16_t, std::shared_ptr<i2p::stream::StreamingDestination> > m_StreamingDestinationsByPorts; std::map<uint16_t, std::shared_ptr<i2p::stream::StreamingDestination> > m_StreamingDestinationsByPorts;
std::shared_ptr<i2p::datagram::DatagramDestination> m_DatagramDestination; i2p::datagram::DatagramDestination * m_DatagramDestination;
public: public: