diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index b860ed35d..d5a22adde 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -11,10 +11,10 @@ - + - + diff --git a/BTCPayServer/Configuration/BTCPayServerRuntime.cs b/BTCPayServer/Configuration/BTCPayServerRuntime.cs index 4232631e8..9e523cf1b 100644 --- a/BTCPayServer/Configuration/BTCPayServerRuntime.cs +++ b/BTCPayServer/Configuration/BTCPayServerRuntime.cs @@ -34,8 +34,11 @@ namespace BTCPayServer.Configuration { Network = opts.Network; Explorer = new ExplorerClient(opts.Network, opts.Explorer); - Explorer.SetCookieFile(opts.CookieFile); - CancellationTokenSource cts = new CancellationTokenSource(5000); + + if(!Explorer.SetCookieAuth(opts.CookieFile)) + Explorer.SetNoAuth(); + + CancellationTokenSource cts = new CancellationTokenSource(10000); try { Logs.Configuration.LogInformation("Trying to connect to explorer " + Explorer.Address.AbsoluteUri); @@ -84,7 +87,7 @@ namespace BTCPayServer.Configuration _Resources.Clear(); } } - + public Network Network { get;