From 2c1127e57ba9c4c1789f9de997260f692daea013 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 27 Dec 2016 17:44:00 +0100 Subject: [PATCH] Change default LoginID Various bad scripts and other bots use LoginID of 0, so we will use LoginID of 1242, or whatever else, as long as it's static --- ArchiSteamFarm/Bot.cs | 2 +- ArchiSteamFarm/GlobalConfig.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 12bc7870e..cc8e0d053 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -43,7 +43,7 @@ namespace ArchiSteamFarm { internal sealed class Bot : IDisposable { private const ushort CallbackSleep = 500; // In miliseconds private const byte FamilySharingInactivityMinutes = 5; - private const uint LoginID = 0; // This must be the same for all ASF bots and all ASF processes + private const uint LoginID = GlobalConfig.DefaultWCFPort; // This must be the same for all ASF bots and all ASF processes private const ushort MaxSteamMessageLength = 2048; internal static readonly ConcurrentDictionary Bots = new ConcurrentDictionary(); diff --git a/ArchiSteamFarm/GlobalConfig.cs b/ArchiSteamFarm/GlobalConfig.cs index 03b2a45fb..bad79a597 100644 --- a/ArchiSteamFarm/GlobalConfig.cs +++ b/ArchiSteamFarm/GlobalConfig.cs @@ -35,11 +35,11 @@ namespace ArchiSteamFarm { [SuppressMessage("ReSharper", "ConvertToConstant.Global")] internal sealed class GlobalConfig { internal const byte DefaultHttpTimeout = 60; + internal const ushort DefaultWCFPort = 1242; private const byte DefaultFarmingDelay = 15; private const byte DefaultMaxFarmingTime = 10; private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp; - private const ushort DefaultWCFPort = 1242; // This is hardcoded blacklist which should not be possible to change internal static readonly HashSet GlobalBlacklist = new HashSet { 267420, 303700, 335590, 368020, 425280, 480730, 566020 };