use shared pointers

This commit is contained in:
Jeff Becker 2016-09-03 16:54:39 -04:00
parent f0bc2a3645
commit 1015188c4e
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
3 changed files with 9 additions and 14 deletions

View file

@ -148,9 +148,9 @@ namespace client
/** ident hash of remote destination */
const i2p::data::IdentHash RemoteIdent;
/** ident hash of IBGW in use currently in this session or nullptr if none is set */
const i2p::data::IdentHash * CurrentIBGW;
std::shared_ptr<const i2p::data::IdentHash> CurrentIBGW;
/** ident hash of OBEP in use for this session or nullptr if none is set */
const i2p::data::IdentHash * CurrentOBEP;
std::shared_ptr<const i2p::data::IdentHash> CurrentOBEP;
/** i2p router's udp endpoint */
const boost::asio::ip::udp::endpoint LocalEndpoint;
/** client's udp endpoint */