face: Implementing Face::getUri() method
Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
diff --git a/daemon/face/tcp-face.cpp b/daemon/face/tcp-face.cpp
index 4f8cbab..6f85a21 100644
--- a/daemon/face/tcp-face.cpp
+++ b/daemon/face/tcp-face.cpp
@@ -17,14 +17,14 @@
TcpLocalFace::protocol, LocalFace, "TcpLocalFace");
TcpFace::TcpFace(const shared_ptr<TcpFace::protocol::socket>& socket)
- : StreamFace<protocol>(socket)
+ : StreamFace<protocol>(FaceUri(socket->remote_endpoint()), socket)
{
}
//
TcpLocalFace::TcpLocalFace(const shared_ptr<TcpLocalFace::protocol::socket>& socket)
- : StreamFace<protocol, LocalFace>(socket)
+ : StreamFace<protocol, LocalFace>(FaceUri(socket->remote_endpoint()), socket)
{
}