diff options
author | sfan5 <sfan5@live.de> | 2020-11-10 21:46:30 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-11-12 21:08:26 +0100 |
commit | ad58ece18062d4c545432b45d71ce6dbe841746b (patch) | |
tree | 81dedc57f3dfda06d91fa93f1b9da9120adadc28 /src | |
parent | 61bbdd6807f4c383b7300b4fd5931f5e09dc7205 (diff) | |
download | minetest-ad58ece18062d4c545432b45d71ce6dbe841746b.tar.gz minetest-ad58ece18062d4c545432b45d71ce6dbe841746b.tar.bz2 minetest-ad58ece18062d4c545432b45d71ce6dbe841746b.zip |
serverpackethandler: Minor log message fixes
closes #10434
Diffstat (limited to 'src')
-rw-r--r-- | src/network/serverpackethandler.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 95e7c548e..3db4eb286 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1657,19 +1657,18 @@ void Server::handleCommand_SrpBytesM(NetworkPacket* pkt) bool wantSudo = (cstate == CS_Active); - verbosestream << "Server: Received TOCLIENT_SRP_BYTES_M." << std::endl; + verbosestream << "Server: Received TOSERVER_SRP_BYTES_M." << std::endl; if (!((cstate == CS_HelloSent) || (cstate == CS_Active))) { - actionstream << "Server: got SRP _M packet in wrong state " - << cstate << " from " << addr_s - << ". Ignoring." << std::endl; + warningstream << "Server: got SRP_M packet in wrong state " + << cstate << " from " << addr_s << ". Ignoring." << std::endl; return; } if (client->chosen_mech != AUTH_MECHANISM_SRP && client->chosen_mech != AUTH_MECHANISM_LEGACY_PASSWORD) { - actionstream << "Server: got SRP _M packet, while auth" - << "is going on with mech " << client->chosen_mech << " from " + warningstream << "Server: got SRP_M packet, while auth " + "is going on with mech " << client->chosen_mech << " from " << addr_s << " (wantSudo=" << wantSudo << "). Denying." << std::endl; if (wantSudo) { DenySudoAccess(peer_id); @@ -1717,7 +1716,7 @@ void Server::handleCommand_SrpBytesM(NetworkPacket* pkt) std::string checkpwd; // not used, but needed for passing something if (!m_script->getAuth(playername, &checkpwd, NULL)) { - actionstream << "Server: " << playername << + errorstream << "Server: " << playername << " cannot be authenticated (auth handler does not work?)" << std::endl; DenyAccess(peer_id, SERVER_ACCESSDENIED_SERVER_FAIL); |