From f189b2050e8af4c26e72decd6524946b48899655 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sun, 21 Jan 2024 15:32:22 +0800 Subject: [PATCH] Turn error into warning --- lib/teeworlds_server.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/teeworlds_server.rb b/lib/teeworlds_server.rb index d61ce3a..55224b1 100644 --- a/lib/teeworlds_server.rb +++ b/lib/teeworlds_server.rb @@ -199,8 +199,13 @@ class TeeworldsServer # TODO: turn this into a silent return # otherwise bad actors can easily trigger this # with handcrafted packets - puts 'Error: got client packet from unknown client' - exit 1 + # + # This is currently triggerd by ddnet TKEN packets + # we should handle those correctly somewhere else i think + # if this warning does not show up anymore it can be removed + p packet + puts 'Warning: got client packet from unknown client' + return end chunks = BigChungusTheChunkGetter.get_chunks(packet.payload) chunks.each do |chunk|