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