diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 16:59:23 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 16:59:23 -0700 |
commit | 1c555e4b9652e9a5a8a6251f2cb7f76c568c069d (patch) | |
tree | ce0aa1f6a56eb09dc1aeab9359a505a2513516f1 /node | |
parent | 6fdb360e2ab1ed27760e6ea699a1594786bcbe76 (diff) | |
download | infinitytier-1c555e4b9652e9a5a8a6251f2cb7f76c568c069d.tar.gz infinitytier-1c555e4b9652e9a5a8a6251f2cb7f76c568c069d.zip |
command bus fix
Diffstat (limited to 'node')
-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 07fa8b25..57c655b7 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -184,7 +184,7 @@ void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine) if ((cmd.empty())||(cmd[0] == "help")) { ipcc->printf("200 help help"ZT_EOL_S); - ipcc->printf("200 auth token"ZT_EOL_S); + ipcc->printf("200 help auth <token>"ZT_EOL_S); ipcc->printf("200 help info"ZT_EOL_S); ipcc->printf("200 help listpeers"ZT_EOL_S); ipcc->printf("200 help listnetworks"ZT_EOL_S); @@ -196,8 +196,8 @@ void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine) if ((cmd.size() > 1)&&(_authToken == cmd[1])) { Mutex::Lock _l(_connections_m); _connections[ipcc] = true; - ipcc->printf("200 OK"ZT_EOL_S); - } else ipcc->printf("403 auth failed"ZT_EOL_S); + ipcc->printf("200 auth OK"ZT_EOL_S); + } else ipcc->printf("403 auth FAILED"ZT_EOL_S); } else { { Mutex::Lock _l(_connections_m); |