Skip to content

Commit

Permalink
Refs #3570. Fixed compilation error on Ubuntu 16.04 (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
richiware authored and BorjaOuterelo committed Oct 19, 2018
1 parent 7ae68cc commit 5702358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpp/transport/TCPv4Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ asio::ip::tcp TCPv4Transport::GenerateProtocol() const

bool TCPv4Transport::IsInterfaceAllowed(const Locator_t& loc) const
{
asio::ip::address_v4 ip = asio::ip::make_address_v4(IPLocator::toIPv4string(loc));
asio::ip::address_v4 ip = asio::ip::address_v4::from_string(IPLocator::toIPv4string(loc));
return IsInterfaceAllowed(ip);
}

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/transport/TCPv6Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ asio::ip::tcp TCPv6Transport::GenerateProtocol() const

bool TCPv6Transport::IsInterfaceAllowed(const Locator_t& loc) const
{
asio::ip::address_v6 ip = asio::ip::make_address_v6(IPLocator::toIPv6string(loc));
asio::ip::address_v6 ip = asio::ip::address_v6::from_string(IPLocator::toIPv6string(loc));
return IsInterfaceAllowed(ip);
}

Expand Down

0 comments on commit 5702358

Please sign in to comment.