use ndn::ip::address(V6)FromString for scope-id aware conversion
Change-Id: Ifdc31771b8a990867c0a79ba42b71c87a97bcd56
Refs: #1428
diff --git a/tools/nfd-autoreg.cpp b/tools/nfd-autoreg.cpp
index cb0bdd2..5c7473f 100644
--- a/tools/nfd-autoreg.cpp
+++ b/tools/nfd-autoreg.cpp
@@ -32,6 +32,7 @@
#include <ndn-cxx/mgmt/nfd/controller.hpp>
#include <ndn-cxx/mgmt/nfd/face-monitor.hpp>
#include <ndn-cxx/mgmt/nfd/face-status.hpp>
+#include <ndn-cxx/net/address-converter.hpp>
#include <ndn-cxx/net/face-uri.hpp>
#include <ndn-cxx/security/key-chain.hpp>
@@ -123,7 +124,7 @@
{
if (hasAllowedSchema(uri)) {
boost::system::error_code ec;
- boost::asio::ip::address address = boost::asio::ip::address::from_string(uri.getHost(), ec);
+ boost::asio::ip::address address = ndn::ip::addressFromString(uri.getHost(), ec);
if (!address.is_multicast()) {
// register all-face prefixes