diff --git a/nano/node/distributed_work.cpp b/nano/node/distributed_work.cpp index 90d1dda4..8e1fe2d5 100644 --- a/nano/node/distributed_work.cpp +++ b/nano/node/distributed_work.cpp @@ -2,11 +2,15 @@ #include #include +#include + std::shared_ptr nano::work_peer_request::get_prepared_json_request (std::string const & request_string_a) const { auto request (std::make_shared> ()); request->method (boost::beast::http::verb::post); request->set (boost::beast::http::field::content_type, "application/json"); + auto address_string = boost::algorithm::erase_first_copy (address.to_string (), "::ffff:"); + request->set (boost::beast::http::field::host, address_string); request->target ("/"); request->version (11); request->body () = request_string_a;