mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 13:42:24 +00:00
Compare commits
2 commits
666c874998
...
cf59137481
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cf59137481 | ||
![]() |
519e588124 |
4 changed files with 4 additions and 1 deletions
|
@ -210,6 +210,7 @@ public class DnsServer4Ray
|
|||
{
|
||||
public string? address { get; set; }
|
||||
public List<string>? domains { get; set; }
|
||||
public bool? skipFallback { get; set; }
|
||||
}
|
||||
|
||||
public class Routing4Ray
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
},
|
||||
{
|
||||
"address": "223.5.5.5",
|
||||
"skipFallback": true,
|
||||
"domains": [
|
||||
"geosite:cn"
|
||||
],
|
||||
|
|
|
@ -1185,6 +1185,7 @@ public class CoreConfigV2rayService
|
|||
var dnsServer = new DnsServer4Ray()
|
||||
{
|
||||
address = string.IsNullOrEmpty(dNSItem?.DomainDNSAddress) ? Global.DomainDNSAddress.FirstOrDefault() : dNSItem?.DomainDNSAddress,
|
||||
skipFallback = true,
|
||||
domains = [node.Address]
|
||||
};
|
||||
servers.AsArray().Add(JsonUtils.SerializeToNode(dnsServer));
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
</Menu>
|
||||
<Separator />
|
||||
<Menu Margin="0,1" Style="{StaticResource ToolbarMenu}">
|
||||
<MenuItem Padding="8,0" Width="86"
|
||||
<MenuItem Padding="8,0"
|
||||
AutomationProperties.Name="{x:Static resx:ResUI.menuSetting}">
|
||||
<MenuItem.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
|
Loading…
Reference in a new issue