Skip to content

Commit 9aa7667

Browse files
committed
rpc: remove deprecated resolver::query
`boost::asio::ip::tcp::resolver::query` has been removed in 1.87 which causes compilation issues. This raises the minimum supported version of Boost to 1.66 which should be safe since near-EOL focal has 1.71.
1 parent 6f728b0 commit 9aa7667

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rpc/protocol.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ class SSLIOStreamDevice : public boost::iostreams::device<boost::iostreams::bidi
143143
bool connect(const std::string& server, const std::string& port)
144144
{
145145
boost::asio::ip::tcp::resolver resolver(GetIOService(stream));
146-
boost::asio::ip::tcp::resolver::query query(server.c_str(), port.c_str());
147-
boost::asio::ip::tcp::resolver::iterator endpoint_iterator = resolver.resolve(query);
146+
boost::asio::ip::tcp::resolver::iterator endpoint_iterator = resolver.resolve(server, port);
148147
boost::asio::ip::tcp::resolver::iterator end;
149148
boost::system::error_code error = boost::asio::error::host_not_found;
150149
while (error && endpoint_iterator != end)

0 commit comments

Comments
 (0)