Skip to content

Commit

Permalink
Merge pull request #1183 from xPaw/machine-name
Browse files Browse the repository at this point in the history
Add machine name field to logon
  • Loading branch information
yaakov-h authored Feb 21, 2023
2 parents 5076de1 + 9c4229a commit 00337c6
Showing 1 changed file with 6 additions and 0 deletions.
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; } = $"{Environment.MachineName} (SteamKit2)";

/// <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

0 comments on commit 00337c6

Please sign in to comment.