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 };