From dac3c0ca29feebff82fa0297c60fc277d750a8d5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 4 Jun 2020 21:19:57 +0200 Subject: [PATCH] Make clients identify themselves against server prep for potential later async auth system. Wanted to get this into the 2.3 client update. --- MultiClient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MultiClient.py b/MultiClient.py index 057e9e01..42748abb 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -9,6 +9,7 @@ import functools import webbrowser import multiprocessing import socket +import uuid from random import randrange from Utils import get_item_name_from_id, get_location_name_from_address, ReceivedItem @@ -886,7 +887,8 @@ async def server_auth(ctx: Context, password_requested): ctx.awaiting_rom = False ctx.auth = ctx.rom.copy() await ctx.send_msgs([['Connect', { - 'password': ctx.password, 'rom': ctx.auth, 'version': Utils._version_tuple, 'tags': get_tags(ctx) + 'password': ctx.password, 'rom': ctx.auth, 'version': Utils._version_tuple, 'tags': get_tags(ctx), + 'uuid': uuid.getnode() }]])