Compare commits

..

15 commits

Author SHA1 Message Date
DHR60
7eaee59c48 auto-disable DNS items with empty NormalDNS on startup 2025-08-10 11:27:08 +08:00
DHR60
8a1bf222fe Uses correct DNS strategy for direct connections 2025-08-10 11:27:08 +08:00
DHR60
55789d9363 Refactor DNS tags handling 2025-08-10 11:27:08 +08:00
DHR60
18784c6e0d Fix 2025-08-10 11:27:08 +08:00
DHR60
1d2f6e30f6 Regional Preset 2025-08-10 11:27:08 +08:00
DHR60
0bf1ed51d3 Fixes Combobox for desktop 2025-08-10 11:27:08 +08:00
DHR60
76bbbec3e8 Compatible 2025-08-10 11:27:08 +08:00
DHR60
54a1642a62 rename DNSItem to SimpleDNSItem 2025-08-10 11:27:07 +08:00
DHR60
9f2e91e961 Fixes geoip overrides rule_set when geosite is also set 2025-08-10 11:27:07 +08:00
DHR60
259fd7e31f Optimize ExpectedIPs Logic 2025-08-10 11:27:07 +08:00
DHR60
77aae1fe28 ExpectedIPs 2025-08-10 11:27:07 +08:00
DHR60
237c6c778d fix 2025-08-10 11:27:07 +08:00
DHR60
c1c5982150 Simplify DNS Settings 2025-08-10 11:27:07 +08:00
DHR60
7995bdd4df
Migrate to sing-box 1.12 support (#7521)
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
* Revert "Temporary addition to support proper use of sing-box v1.12"

This reverts commit 508eb24fc3.

* Migrating to singbox 1.11 support

* Removes unnecessary sniffer

* Migrating to singbox 1.12 support

* Adds Google cn dns rules

* Improves geoip rule handling in singbox

* add anytls support

* Simplifies local DNS address handling

* Enables dhcp interface configuration

* Fetches DNS strategy for domain resolution

* support Wireguard endpoint
Refactors Singbox config classes for dial fields

* Utils.GetFreePort() default port to be zero

* Adds Sing-box legacy DNS config support

* Adds IPv4 preference to DNS configurations

对应原dns.servers[].strategy = prefer_ipv4

* Refactors DNS address parsing

* Fixes config generation

* fix singbox endpoints proxy chain not work

* Fixes wrong field

* Removes direct clash_mode domain strategy

* Improves DNS address parsing in Singbox

DNS type, host, port, and path

* Adds properties to Rule4Sbox class

* Removes Wireguard listen port

* Support sing-box hosts

* Adds tag resolver supports

* Adds sing-box DomainStrategy support

* Deletes Duplicate Rules

* Adds anytls reality support

* Fixes

* Updates sing-box documentation link

* Updates translations
2025-08-10 10:15:32 +08:00
2dust
df95cc6af7 Code clean 2025-08-10 09:17:15 +08:00
7 changed files with 8 additions and 7 deletions

View file

@ -411,11 +411,11 @@ public class Utils
// Link-local address fe80::/10
if (ipBytes[0] == 0xfe && (ipBytes[1] & 0xc0) == 0x80)
return true;
// Unique local address fc00::/7 (typically fd00::/8)
if ((ipBytes[0] & 0xfe) == 0xfc)
return true;
// Private portion in IPv4-mapped addresses ::ffff:0:0/96
if (address.IsIPv4MappedToIPv6)
{

View file

@ -2033,7 +2033,7 @@ public class ConfigHandler
if (!blImportAdvancedRules && items.Count > 0)
{
//migrate
//migrate
//TODO Temporary code to be removed later
if (config.RoutingBasicItem.RoutingIndexId.IsNotEmpty())
{

View file

@ -62,7 +62,7 @@ public class BaseFmt
if (item.Mldsa65Verify.IsNotEmpty())
{
dicQuery.Add("pqv", Utils.UrlEncode(item.Mldsa65Verify));
}
}
if (item.AllowInsecure.Equals("true"))
{
dicQuery.Add("allowInsecure", "1");

View file

@ -12,7 +12,7 @@ public class CoreConfigClashService
{
_config = config;
}
public async Task<RetResult> GenerateClientCustomConfig(ProfileItem node, string? fileName)
{
var ret = new RetResult();

View file

@ -234,7 +234,7 @@ public class ClashProxiesViewModel : MyReactiveObject
else
{
SelectedGroup = _proxyGroups.First();
}
}
}
else
{

View file

@ -73,6 +73,7 @@
<ScrollViewer x:Name="msgScrollViewer" VerticalScrollBarVisibility="Auto">
<SelectableTextBlock
Name="txtMsg"
Margin="{StaticResource Margin8}"
VerticalAlignment="Stretch"
Classes="TextArea"
TextAlignment="Left"

View file

@ -25,7 +25,7 @@ public partial class MsgView
menuMsgViewCopy.Click += menuMsgViewCopy_Click;
menuMsgViewCopyAll.Click += menuMsgViewCopyAll_Click;
menuMsgViewClear.Click += menuMsgViewClear_Click;
cmbMsgFilter.ItemsSource = Global.PresetMsgFilters;
}