add Interet class for flexibility if we need selectors in the future
diff --git a/src/ccnx-tunnel.cpp b/src/ccnx-tunnel.cpp
index 467f7a1..b36b030 100644
--- a/src/ccnx-tunnel.cpp
+++ b/src/ccnx-tunnel.cpp
@@ -28,10 +28,11 @@
}
int
-CcnxTunnel::sendInterest (const std::string &interest, Closure *closure)
+CcnxTunnel::sendInterest (const Interest &interest, Closure *closure)
{
- string tunneledInterest = queryRoutableName(interest);
- Closure *cp = new TunnelClosure(closure, this, interest);
+ string strInterest = interest.name();
+ string tunneledInterest = queryRoutableName(strInterest);
+ Closure *cp = new TunnelClosure(closure, this, strInterest);
sendInterest(tunneledInterest, cp);
}