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

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

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.