Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] Eliminate use of boost deprecated query object. #489

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,8 @@ class http_plugin_impl : public std::enable_shared_from_this<http_plugin_impl> {
string lipstr = options.at( "http-server-address" ).as<string>();
string host = lipstr.substr( 0, lipstr.find( ':' ));
string port = lipstr.substr( host.size() + 1, lipstr.size());
tcp::resolver::query query( tcp::v4(), host.c_str(), port.c_str());
try {
my->listen_endpoint = *resolver.resolve( query );
my->listen_endpoint = *resolver.resolve( tcp::v4(), host, port );
ilog( "configured http to listen on ${h}:${p}", ("h", host)( "p", port ));
} catch ( const boost::system::system_error& ec ) {
elog( "failed to configure http to listen on ${h}:${p} (${m})",
Expand Down Expand Up @@ -772,9 +771,8 @@ class http_plugin_impl : public std::enable_shared_from_this<http_plugin_impl> {
string lipstr = options.at( "https-server-address" ).as<string>();
string host = lipstr.substr( 0, lipstr.find( ':' ));
string port = lipstr.substr( host.size() + 1, lipstr.size());
tcp::resolver::query query( tcp::v4(), host.c_str(), port.c_str());
try {
my->https_listen_endpoint = *resolver.resolve( query );
my->https_listen_endpoint = *resolver.resolve( tcp::v4(), host, port );
ilog( "configured https to listen on ${h}:${p} (TLS configuration will be validated momentarily)",
("h", host)( "p", port ));
my->https_cert_chain = options.at( "https-certificate-chain-file" ).as<string>();
Expand Down