bump protocol version number in case I want to disallow old (in this case aka locally cheating) clients.
This commit is contained in:
parent
1fb7ed30eb
commit
857c318108
|
@ -726,7 +726,7 @@ async def server_auth(ctx: Context, password_requested):
|
||||||
ctx.awaiting_rom = False
|
ctx.awaiting_rom = False
|
||||||
ctx.auth = ctx.rom.copy()
|
ctx.auth = ctx.rom.copy()
|
||||||
await send_msgs(ctx.socket, [['Connect', {
|
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):
|
async def console_input(ctx : Context):
|
||||||
|
|
|
@ -163,7 +163,7 @@ async def on_client_connected(ctx: Context, client: Client):
|
||||||
# tags are for additional features in the communication.
|
# tags are for additional features in the communication.
|
||||||
# Name them by feature or fork, as you feel is appropriate.
|
# Name them by feature or fork, as you feel is appropriate.
|
||||||
'tags': ['Berserker'],
|
'tags': ['Berserker'],
|
||||||
'version': [1, 0, 0]
|
'version': [1, 1, 0]
|
||||||
}]])
|
}]])
|
||||||
|
|
||||||
async def on_client_disconnected(ctx: Context, client: Client):
|
async def on_client_disconnected(ctx: Context, client: Client):
|
||||||
|
|
Loading…
Reference in New Issue