bump protocol version number in case I want to disallow old (in this case aka locally cheating) clients.

This commit is contained in:
Fabian Dill 2020-02-22 19:45:55 +01:00
parent 1fb7ed30eb
commit 857c318108
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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):