pull/1/head
Ogoun 5 years ago
parent a8143561aa
commit ad2d0ac707

@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Text;
using System.Threading;
using ZeroLevel.Services.Serialization;

@ -28,13 +28,15 @@ namespace ZeroLevel.Services.Web
return result;
}
private static readonly bool _use_bot_agents;
private static bool _use_bot_agents;
static UserAgents()
{
_use_bot_agents = Configuration.Default.FirstOrDefault<bool>("useBotUserAgents");
}
public static bool UseBotAgent { get { return _use_bot_agents; } set { _use_bot_agents = true; } }
private static List<string> _bot_agents = new List<string>
{
"APIs-Google (+https://developers.google.com/webmasters/APIs-Google.html)",

@ -6,7 +6,7 @@
</Description>
<Authors>ogoun</Authors>
<Company>ogoun</Company>
<AssemblyVersion>3.3.3.0</AssemblyVersion>
<AssemblyVersion>3.3.4.0</AssemblyVersion>
<PackageReleaseNotes>Refactoring</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/ogoun/Zero/wiki</PackageProjectUrl>
<Copyright>Copyright Ogoun 2020</Copyright>
@ -14,8 +14,8 @@
<PackageIconUrl></PackageIconUrl>
<RepositoryUrl>https://github.com/ogoun/Zero</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Version>3.3.3</Version>
<FileVersion>3.3.3.1</FileVersion>
<Version>3.3.4</Version>
<FileVersion>3.3.4.1</FileVersion>
<Platforms>AnyCPU;x64</Platforms>
<PackageIcon>zero.png</PackageIcon>
</PropertyGroup>

Loading…
Cancel
Save

Powered by TurnKey Linux.