Fix client tokens
This commit is contained in:
parent
6d7bd0371d
commit
821036fba4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue