face: Implementing ip::address::is_loopback method for Boost <1.47
boost::ip::address::is_loopback method appeared only in Boost 1.47.
This commit enables the same functionality for earlier versions of
boost, based on implementation in 1.55.
Change-Id: I571408fc7db44eebd14405e7b7a9810b5d061802
diff --git a/daemon/face/tcp-channel.cpp b/daemon/face/tcp-channel.cpp
index 34b734a..bb47ab3 100644
--- a/daemon/face/tcp-channel.cpp
+++ b/daemon/face/tcp-channel.cpp
@@ -124,7 +124,7 @@
tcp::Endpoint remoteEndpoint = socket->remote_endpoint();
shared_ptr<Face> face;
- if (socket->local_endpoint().address().is_loopback())
+ if (is_loopback(socket->local_endpoint().address()))
face = make_shared<TcpLocalFace>(boost::cref(socket));
else
face = make_shared<TcpFace>(boost::cref(socket));