mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-10-11 09:48:10 +08:00
chore: Make slash optional for system resolver
This commit is contained in:
1 parent
969c235490
commit
1eefa71e1f
2 files changed
+5
-1
No files matched your search
@@ -974,6 +974,10 @@ func parsePureDNSServer(server string) string {
|
||||
return "udp://" + server
|
||||
}
|
||||
|
||||
if server == "system" {
|
||||
return "system://"
|
||||
}
|
||||
|
||||
if ip, err := netip.ParseAddr(server); err != nil {
|
||||
if strings.Contains(server, "://") {
|
||||
return server
|
||||
|
||||
+1
-1
@@ -177,7 +177,7 @@ dns:
|
||||
- 8.8.8.8
|
||||
- tls://1.12.12.12:853
|
||||
- tls://223.5.5.5:853
|
||||
- system:// # append DNS server from system configuration. If not found, it would print an error log and skip.
|
||||
- system # append DNS server from system configuration. If not found, it would print an error log and skip.
|
||||
enhanced-mode: fake-ip # or redir-host
|
||||
|
||||
fake-ip-range: 198.18.0.1/16 # fake-ip 池设置
|
||||
|
||||
Reference in new issue
Block a user