use ndn::ip::address(V6)FromString for scope-id aware conversion
Change-Id: Ifdc31771b8a990867c0a79ba42b71c87a97bcd56
Refs: #1428
diff --git a/daemon/face/tcp-factory.cpp b/daemon/face/tcp-factory.cpp
index 8214969..1546d24 100644
--- a/daemon/face/tcp-factory.cpp
+++ b/daemon/face/tcp-factory.cpp
@@ -25,6 +25,8 @@
#include "tcp-factory.hpp"
+#include <ndn-cxx/net/address-converter.hpp>
+
namespace nfd {
namespace face {
@@ -143,7 +145,7 @@
return;
}
- tcp::Endpoint endpoint(ip::address::from_string(params.remoteUri.getHost()),
+ tcp::Endpoint endpoint(ndn::ip::addressFromString(params.remoteUri.getHost()),
boost::lexical_cast<uint16_t>(params.remoteUri.getPort()));
// a canonical tcp4/tcp6 FaceUri cannot have a multicast address
@@ -184,7 +186,7 @@
shared_ptr<TcpChannel>
TcpFactory::createChannel(const std::string& localIp, const std::string& localPort)
{
- tcp::Endpoint endpoint(ip::address::from_string(localIp),
+ tcp::Endpoint endpoint(ndn::ip::addressFromString(localIp),
boost::lexical_cast<uint16_t>(localPort));
return createChannel(endpoint);
}