examples: Do not use /localhost prefix in examples
This change is to avoid a common problem of running examples on separate
machines. The use of /localhost prefix, due to name-based scoping,
restricts the example programs to run on a single machine.
Change-Id: Id9f753fb7d097411b77b6227c6518679849d4411
diff --git a/examples/producer.cpp b/examples/producer.cpp
index 2998bd0..3b5ff07 100644
--- a/examples/producer.cpp
+++ b/examples/producer.cpp
@@ -77,7 +77,7 @@
void
run()
{
- m_face.setInterestFilter("/localhost/testApp",
+ m_face.setInterestFilter("/example/testApp",
bind(&Producer::onInterest, this, _1, _2),
RegisterPrefixSuccessCallback(),
bind(&Producer::onRegisterFailed, this, _2));