From abc82d6a52a75a30040fb4a458751a664a625c0a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 19 Mar 2014 13:56:48 -0700 Subject: IPC changes and SocketManager changes all build! --- node/NodeConfig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/NodeConfig.cpp') diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp index 48782efa..07fa8b25 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -53,7 +53,7 @@ namespace ZeroTier { NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken) : _r(renv), - _ipcListener(ZT_IPC_ENDPOINT,&_CBcommandHandler,this), + _ipcListener((std::string(ZT_IPC_ENDPOINT_BASE) + renv->identity.address().toString()).c_str(),&_CBcommandHandler,this), _authToken(authToken) { { @@ -177,8 +177,8 @@ public: void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine) { - if (!commandLine) - return; // sanity check + if ((!commandLine)||(!commandLine[0])) + return; std::vector r; std::vector cmd(Utils::split(commandLine,"\r\n \t","\\","'")); -- cgit v1.2.3