Fix client tokens

This commit is contained in:
ChillerDragon 2022-11-12 15:55:24 +01:00
parent 6d7bd0371d
commit 821036fba4

View file

@ -217,7 +217,7 @@ class TeeworldsServer
puts 'server full drop packet. TODO: tell the client'
return
end
token = bytes_to_str(packet.payload[...4])
token = bytes_to_str(packet.payload[1..4])
puts "got connection, sending accept (client token: #{token})"
client = Client.new(id:, addr: packet.addr, token:)
@clients[id] = client