daemon: globally disable automatic verification of Interest parameters digest
Refs: #4658
Change-Id: I07cc6811fc42ee216e0b84cdcb3165170e5d3f89
diff --git a/daemon/nfd.cpp b/daemon/nfd.cpp
index a615563..633e4f0 100644
--- a/daemon/nfd.cpp
+++ b/daemon/nfd.cpp
@@ -44,12 +44,14 @@
NFD_LOG_INIT(Nfd);
-static const std::string INTERNAL_CONFIG = "internal://nfd.conf";
+const std::string INTERNAL_CONFIG("internal://nfd.conf");
Nfd::Nfd(ndn::KeyChain& keyChain)
: m_keyChain(keyChain)
, m_netmon(make_shared<ndn::net::NetworkMonitor>(getGlobalIoService()))
{
+ // Disable automatic verification of parameters digest for decoded Interests.
+ Interest::setAutoCheckParametersDigest(false);
}
Nfd::Nfd(const std::string& configFile, ndn::KeyChain& keyChain)