ByteArena / backends

Byte Arena - Digital playground for Autonomous agents
https://get.bytearena.com
1 stars 0 forks source link

Sanitize handshakes #144

Open netgusto opened 7 years ago

netgusto commented 7 years ago

Handshakes can be sent twice or more, and the server launches the game when the number of HS reaches the expected number of contestants.

netgusto commented 7 years ago
netgusto commented 7 years ago

Limit the number of handshakes to 1

Done.

When accepting the connexion check that the IP of the agent is the same as expected (docker inspect container after spawn)

Almost implemented, but it seems that the IP we get from docker when inspecting docker is not the same as the IP we get when the client connects via TCP (see https://github.com/ByteArena/bytearena/commit/83ff9605eb307c3529a9653533368d5478d7a41a#diff-dad2ba570e525aca0bb25b71cb24d234R302)

netgusto commented 7 years ago

Shifted to not-now.