mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-18 05:25:46 +00:00
Compare commits
4 commits
4217406b02
...
c5bebc252a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5bebc252a | ||
|
|
bfa9eaa5ec | ||
|
|
cea725ae3d | ||
|
|
c9df9a0001 |
3 changed files with 12 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>7.19.0</Version>
|
||||
<Version>7.19.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
<PackageVersion Include="Semi.Avalonia" Version="11.3.7.3" />
|
||||
<PackageVersion Include="Semi.Avalonia.AvaloniaEdit" Version="11.2.0.1" />
|
||||
<PackageVersion Include="Semi.Avalonia.DataGrid" Version="11.3.7.3" />
|
||||
<PackageVersion Include="NLog" Version="6.1.0" />
|
||||
<PackageVersion Include="NLog" Version="6.1.1" />
|
||||
<PackageVersion Include="sqlite-net-pcl" Version="1.9.172" />
|
||||
<PackageVersion Include="TaskScheduler" Version="2.12.2" />
|
||||
<PackageVersion Include="WebDav.Client" Version="2.9.0" />
|
||||
|
|
|
|||
|
|
@ -433,7 +433,11 @@ public partial class CoreConfigSingboxService
|
|||
localDnsServer.tag = tag;
|
||||
|
||||
dns4Sbox.servers.Add(localDnsServer);
|
||||
dns4Sbox.rules.Insert(0, BuildProtectDomainRule());
|
||||
var protectDomainRule = BuildProtectDomainRule();
|
||||
if (protectDomainRule != null)
|
||||
{
|
||||
dns4Sbox.rules.Insert(0, protectDomainRule);
|
||||
}
|
||||
|
||||
_coreConfig.dns = dns4Sbox;
|
||||
}
|
||||
|
|
@ -455,8 +459,12 @@ public partial class CoreConfigSingboxService
|
|||
_coreConfig.dns?.servers?.Add(localDnsServer);
|
||||
}
|
||||
|
||||
private Rule4Sbox BuildProtectDomainRule()
|
||||
private Rule4Sbox? BuildProtectDomainRule()
|
||||
{
|
||||
if (context.ProtectDomainList.Count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new()
|
||||
{
|
||||
server = Global.SingboxLocalDNSTag,
|
||||
|
|
|
|||
Loading…
Reference in a new issue