Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add machine name field to logon #1183

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/SteamUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ public sealed class LogOnDetails
/// </summary>
/// <value>The client language.</value>
public string ClientLanguage { get; set; }
/// <summary>
/// Gets or sets the machine name.
/// </summary>
/// <value>The machine name.</value>
public string? MachineName { get; set; } = nameof( SteamKit2 );
xPaw marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Initializes a new instance of the <see cref="LogOnDetails"/> class.
Expand Down Expand Up @@ -347,6 +352,7 @@ public void LogOn( LogOnDetails details )
// we're now using the latest steamclient package version, this is required to get a proper sentry file for steam guard
logon.Body.client_package_version = 1771; // todo: determine if this is still required
logon.Body.supports_rate_limit_response = true;
logon.Body.machine_name = details.MachineName;
logon.Body.machine_id = HardwareUtils.GetMachineID( Client.Configuration.MachineInfoProvider );

// steam guard
Expand Down