|
|
@ -38,6 +38,8 @@
|
|
|
|
using namespace epee;
|
|
|
|
using namespace epee;
|
|
|
|
namespace bf = boost::filesystem;
|
|
|
|
namespace bf = boost::filesystem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static std::mutex instance_lock;
|
|
|
|
|
|
|
|
|
|
|
|
namespace
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -326,6 +328,8 @@ std::string DNSResolver::get_dns_format_from_oa_address(const std::string& oa_ad
|
|
|
|
|
|
|
|
|
|
|
|
DNSResolver& DNSResolver::instance()
|
|
|
|
DNSResolver& DNSResolver::instance()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
std::lock_guard<std::mutex> lock(instance_lock);
|
|
|
|
|
|
|
|
|
|
|
|
static DNSResolver* staticInstance = NULL;
|
|
|
|
static DNSResolver* staticInstance = NULL;
|
|
|
|
if (staticInstance == NULL)
|
|
|
|
if (staticInstance == NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|