Browse Source

Merge pull request #273 from EinMByte/master

Fix #272 and #274.
pull/281/head
EinMByte 9 years ago
parent
commit
d05ad68aa4
  1. 2
      core/AddressBook.cpp
  2. 2
      core/util/util.cpp
  3. 2
      core/util/util.h

2
core/AddressBook.cpp

@ -466,7 +466,7 @@ namespace client
bool success = false; bool success = false;
i2p::util::http::url u (m_Link); i2p::util::http::url u (m_Link);
i2p::data::IdentHash ident; i2p::data::IdentHash ident;
if (m_Book.GetIdentHash (u.host_, ident)) if (m_Book.GetIdentHash (u.host_, ident) && m_Book.getSharedLocalDestination())
{ {
std::condition_variable newDataReceived; std::condition_variable newDataReceived;
std::mutex newDataReceivedMutex; std::mutex newDataReceivedMutex;

2
core/util/util.cpp

@ -1,3 +1,4 @@
#include "util.h"
#include <cstdlib> #include <cstdlib>
#include <string> #include <string>
#include <algorithm> #include <algorithm>
@ -12,7 +13,6 @@
#include <boost/program_options/detail/config_file.hpp> #include <boost/program_options/detail/config_file.hpp>
#include <boost/program_options/parsers.hpp> #include <boost/program_options/parsers.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include "util.h"
#include "Log.h" #include "Log.h"
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__)

2
core/util/util.h

@ -1,6 +1,8 @@
#ifndef UTIL_H #ifndef UTIL_H
#define UTIL_H #define UTIL_H
#define BOOST_NO_CXX11_SCOPED_ENUMS // Workaround for issue #272
#include <map> #include <map>
#include <string> #include <string>
#include <iostream> #include <iostream>

Loading…
Cancel
Save