From 857c31810869a9cd5d3aec8153cf4fa0c2caac04 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 22 Feb 2020 19:45:55 +0100 Subject: [PATCH] bump protocol version number in case I want to disallow old (in this case aka locally cheating) clients. --- MultiClient.py | 2 +- MultiServer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiClient.py b/MultiClient.py index 62ad19a2..38ade7d8 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -726,7 +726,7 @@ async def server_auth(ctx: Context, password_requested): ctx.awaiting_rom = False ctx.auth = ctx.rom.copy() await send_msgs(ctx.socket, [['Connect', { - 'password': ctx.password, 'rom': ctx.auth, 'version': [1, 0, 0], 'tags': ['Berserker'] + 'password': ctx.password, 'rom': ctx.auth, 'version': [1, 1, 0], 'tags': ['Berserker'] }]]) async def console_input(ctx : Context): diff --git a/MultiServer.py b/MultiServer.py index 6ac7e257..b8f12197 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -163,7 +163,7 @@ async def on_client_connected(ctx: Context, client: Client): # tags are for additional features in the communication. # Name them by feature or fork, as you feel is appropriate. 'tags': ['Berserker'], - 'version': [1, 0, 0] + 'version': [1, 1, 0] }]]) async def on_client_disconnected(ctx: Context, client: Client):