From 3450ef0b5b99eaad7694eeddd7556485effeafff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 May 2025 18:26:36 +0300 Subject: Steam: use machine name as unique location id --- protocols/Steam/src/stdafx.h | 5 +++++ protocols/Steam/src/steam_login.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h index 37c008b5b1..7a5621f2be 100644 --- a/protocols/Steam/src/stdafx.h +++ b/protocols/Steam/src/stdafx.h @@ -38,6 +38,11 @@ #include #include +extern "C" +{ + #include "../../libs/zlib/src/unzip.h" +} + #include "resource.h" #include "version.h" diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 4ea0e6cf9d..cac890ac18 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -252,7 +252,7 @@ void CSteamProto::OnPollSession(const CAuthenticationPollAuthSessionStatusRespon CMsgIPAddress privateIp; privateIp.ip_case = CMSG_IPADDRESS__IP_V4; - privateIp.v4 = 0; + privateIp.v4 = crc32(0xBABABEDA, (const Bytef *)szMachineName, (unsigned)mir_strlen(szMachineName)); CMsgClientLogon request; request.access_token = reply.refresh_token; -- cgit v1.2.3