From 7acfa9f3cc7b52c0f4776dde3c3f80674cc3306f Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Wed, 23 Jan 2019 21:37:43 +0000 Subject: Added socks proxy (tor/i2pd/kovri) support to wallet --- contrib/epee/include/net/net_utils_base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/epee/include/net/net_utils_base.h') diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h index 7b5b07ef2..50536f63b 100644 --- a/contrib/epee/include/net/net_utils_base.h +++ b/contrib/epee/include/net/net_utils_base.h @@ -44,6 +44,12 @@ #define MAKE_IP( a1, a2, a3, a4 ) (a1|(a2<<8)|(a3<<16)|(a4<<24)) #endif +#if BOOST_VERSION >= 107000 +#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context()) +#else +#define GET_IO_SERVICE(s) ((s).get_io_service()) +#endif + namespace net { class tor_address; -- cgit v1.2.3