diff options
author | sfan5 <sfan5@live.de> | 2020-05-16 12:03:36 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-05-16 12:03:36 +0200 |
commit | a08251a61e5c6f407621d04b2de4da6812410c66 (patch) | |
tree | 413e22e550d18dc24927b754712417ebc227803d /src/network | |
parent | af0f7ac4a2032780eb731918c8fe9dc9e1262b5f (diff) | |
download | minetest-a08251a61e5c6f407621d04b2de4da6812410c66.tar.gz minetest-a08251a61e5c6f407621d04b2de4da6812410c66.tar.bz2 minetest-a08251a61e5c6f407621d04b2de4da6812410c66.zip |
Log protocol ver on mismatched client connect too
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/serverpackethandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 39a912827..2fa9d4196 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -112,7 +112,7 @@ void Server::handleCommand_Init(NetworkPacket* pkt) if (depl_serial_v == SER_FMT_VER_INVALID) { actionstream << "Server: A mismatched client tried to connect from " << - addr_s << " client_max=" << (int)client_max << std::endl; + addr_s << " ser_fmt_max=" << (int)client_max << std::endl; DenyAccess(peer_id, SERVER_ACCESSDENIED_WRONG_VERSION); return; } @@ -147,7 +147,7 @@ void Server::handleCommand_Init(NetworkPacket* pkt) net_proto_version < SERVER_PROTOCOL_VERSION_MIN || net_proto_version > SERVER_PROTOCOL_VERSION_MAX) { actionstream << "Server: A mismatched client tried to connect from " << - addr_s << std::endl; + addr_s << " proto_max=" << (int)max_net_proto_version << std::endl; DenyAccess(peer_id, SERVER_ACCESSDENIED_WRONG_VERSION); return; } |