core+face: avoid deprecated Boost.Asio interfaces
Change-Id: I07ec286531edf63f258babe1561b4da2a88edd10
diff --git a/tools/nfd-autoreg.cpp b/tools/nfd-autoreg.cpp
index 4876090..292ccc8 100644
--- a/tools/nfd-autoreg.cpp
+++ b/tools/nfd-autoreg.cpp
@@ -116,7 +116,7 @@
{
if (hasAllowedSchema(uri)) {
boost::system::error_code ec;
- auto address = boost::asio::ip::address::from_string(uri.getHost(), ec);
+ auto address = boost::asio::ip::make_address(uri.getHost(), ec);
if (!address.is_multicast()) {
// register all-face prefixes