Browse Source

osx fix

pull/628/head
Jeff Becker 8 years ago
parent
commit
b977050caf
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 4
      Destination.cpp
  2. 6
      Destination.h

4
Destination.cpp

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

6
Destination.h

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

Loading…
Cancel
Save