Skip to content

Commit

Permalink
Replace boost::asio::ip::address::from_string() to boost::asio::ip::m…
Browse files Browse the repository at this point in the history
…ake_address()

boost::asio::ip::address::from_string() is deprecated.
  • Loading branch information
deniskovalchuk committed Aug 7, 2023
1 parent cbb773e commit 31e757c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ftp/src/data_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void data_connection::open(const std::string & ip, std::uint16_t port)
{
boost::system::error_code ec;

boost::asio::ip::address address = boost::asio::ip::address::from_string(ip, ec);
boost::asio::ip::address address = boost::asio::ip::make_address(ip, ec);

if (ec)
{
Expand Down Expand Up @@ -71,7 +71,7 @@ void data_connection::listen(const std::string & ip, std::uint16_t port)
{
boost::system::error_code ec;

boost::asio::ip::address address = boost::asio::ip::address::from_string(ip, ec);
boost::asio::ip::address address = boost::asio::ip::make_address(ip, ec);

if (ec)
{
Expand Down

0 comments on commit 31e757c

Please sign in to comment.