From 76dbe6633c10f4e833c9329482b10b8b44a0417d Mon Sep 17 00:00:00 2001 From: Ashlesh Gawande Date: Wed, 15 Apr 2020 21:30:34 -0700 Subject: [PATCH] nfd: uncomment transport in client.conf to allow connections on /run/.sock refs: #5039 Change-Id: Id14c60ca171f80277a248cb9452c3b4d3e39ebce --- minindn/apps/nfd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minindn/apps/nfd.py b/minindn/apps/nfd.py index 7130526..2b6a959 100644 --- a/minindn/apps/nfd.py +++ b/minindn/apps/nfd.py @@ -35,7 +35,7 @@ class Nfd(Application): self.confFile = '{}/nfd.conf'.format(self.homeDir) self.logFile = 'nfd.log' - self.sockFile = '/var/run/{}.sock'.format(node.name) + self.sockFile = '/run/{}.sock'.format(node.name) self.ndnFolder = '{}/.ndn'.format(self.homeDir) self.clientConf = '{}/client.conf'.format(self.ndnFolder) @@ -63,6 +63,7 @@ class Nfd(Application): copyExistentFile(node, possibleClientConfPaths, self.clientConf) # Change the unix socket + node.cmd('sudo sed -i "s|;transport|transport|g" {}'.format(self.clientConf)) node.cmd('sudo sed -i "s|nfd.sock|{}.sock|g" {}'.format(node.name, self.clientConf)) if not Minindn.ndnSecurityDisabled: