Skip to content

Commit

Permalink
GetIdEnable
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed Sep 23, 2024
1 parent 0ab10d9 commit 87e3df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Arashi.Aoi/Routes/DnsQueryRoutes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ public static bool GetIdEnable(HttpContext context)
var userAgent = context.Request.Headers.UserAgent.ToString().ToLower();

var idEnable = Config.TransIdEnable;
var noIdUaList = new HashSet<string> {"intra", "chrome", "curl"};
var noIdUaList = new HashSet<string> { "intra", "chrome", "curl" };
var needIdUaList = new HashSet<string>
{"go-http-client", "dnscrypt", "dalvik", "ikuaios", "clash", "quic-go"};
{"go-http-client", "dnscrypt", "dalvik", "ikuaios", "clash", "mihomo", "quic-go"};

if (queryDictionary.TryGetValue("idEnable", out var str) && bool.TryParse(str, out var idResult))
idEnable = idResult;
Expand Down
6 changes: 2 additions & 4 deletions Arashi.Shimbashi/Arashi.Shimbashi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PublishAot>true</PublishAot>
<StripSymbols>true</StripSymbols>
<!-- <IlcOptimizationPreference>Speed</IlcOptimizationPreference> -->
<!-- <IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies> --><!-- <NativeAOT>true</NativeAOT> -->

<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Arashi.Aoi\Arashi.Aoi.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 87e3df5

Please sign in to comment.