Skip to content

Commit 39182c0

Browse files
authored
Merge pull request #889 from openmultiplayer/ksn/fix-log-queries
Handle queries when logging is enabled
2 parents 942e28a + 3d5d20e commit 39182c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Server/Components/LegacyNetwork/Query

Server/Components/LegacyNetwork/Query/query.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ Span<const char> Query::handleQuery(Span<const char> buffer, uint32_t sock, cons
295295
PeerAddress::ToString(addr, addrString);
296296
core->printLn("[query:%c] from %.*s", buffer[QUERY_TYPE_INDEX], PRINT_VIEW(addrString));
297297
}
298+
298299
// Ping
299-
else if (buffer[QUERY_TYPE_INDEX] == 'p')
300+
if (buffer[QUERY_TYPE_INDEX] == 'p')
300301
{
301302
if (buffer.size() != BASE_QUERY_SIZE + sizeof(uint32_t))
302303
{

0 commit comments

Comments
 (0)