face: fix controller creation bug that dismisses nrd-0.1 as unsupported
refs: #1398
Change-Id: Icde191b4e5528b15cda2a569248b7038162bd8c3
diff --git a/client.conf.sample b/client.conf.sample
index 6cde2eb..7e31b04 100644
--- a/client.conf.sample
+++ b/client.conf.sample
@@ -1,7 +1,7 @@
; "unix_socket" specifies the location of the NFD unix socket
unix_socket=/var/run/nfd.sock
-; "protocol" deteremines the protocol for prefix registration
+; "protocol" determines the protocol for prefix registration
; it has a value of:
; nfd-0.1
; nrd-0.1
diff --git a/src/face.cpp b/src/face.cpp
index 2773f07..a8b59e9 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -90,7 +90,7 @@
{
m_fwController = make_shared<nrd::Controller>(boost::ref(*this));
}
- if (isSupportedNfdProtocol(protocol))
+ else if (isSupportedNfdProtocol(protocol))
{
m_fwController = make_shared<nfd::Controller>(boost::ref(*this));
}