diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 13:56:48 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 13:56:48 -0700 |
| commit | abc82d6a52a75a30040fb4a458751a664a625c0a (patch) | |
| tree | fe2f1cb05521fcc0da0472a572755829924d49c4 /node/NodeConfig.cpp | |
| parent | acf7d70d241c6afc1f3f13fb7b678882f1ec3ea5 (diff) | |
| download | infinitytier-abc82d6a52a75a30040fb4a458751a664a625c0a.tar.gz infinitytier-abc82d6a52a75a30040fb4a458751a664a625c0a.zip | |
IPC changes and SocketManager changes all build!
Diffstat (limited to 'node/NodeConfig.cpp')
| -rw-r--r-- | node/NodeConfig.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<std::string> r; std::vector<std::string> cmd(Utils::split(commandLine,"\r\n \t","\\","'")); |
