From 72c7f4333a81fb6abf2e73a9f294ae274e5c48eb Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 4 Mar 2025 20:11:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20SurgeMac=20mihomo=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=20DNS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- backend/package.json | 2 +- .../src/core/proxy-utils/producers/surgemac.js | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index abf5c08..35370e9 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,14 @@ Core functionalities: example: `socks5+tls://user:pass@ip:port#name` -- [x] URI(SOCKS, SS, SSR, VMess, VLESS, Trojan, Hysteria, Hysteria 2, TUIC v5, WireGuard) +- [x] URI(AnyTLS, SOCKS, SS, SSR, VMess, VLESS, Trojan, Hysteria, Hysteria 2, TUIC v5, WireGuard) - [x] Clash Proxies YAML - [x] Clash Proxy JSON(single line) - [x] QX (SS, SSR, VMess, Trojan, HTTP, SOCKS5, VLESS) - [x] Loon (SS, SSR, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard, VLESS, Hysteria 2) - [x] Surge (Direct, SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, TUIC, Snell, Hysteria 2, SSH(Password authentication only), External Proxy Program(only for macOS), WireGuard(Surge to Surge)) - [x] Surfboard (SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard(Surfboard to Surfboard)) -- [x] Clash.Meta (Direct, SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC, SSH, mieru) +- [x] Clash.Meta (Direct, SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC, SSH, mieru, AnyTLS) - [x] Stash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, TUIC, Juicity, SSH) - [x] Clash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard) diff --git a/backend/package.json b/backend/package.json index dc0b42c..52f0250 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.17.2", + "version": "2.17.3", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/surgemac.js b/backend/src/core/proxy-utils/producers/surgemac.js index 40c1487..ba3dc20 100644 --- a/backend/src/core/proxy-utils/producers/surgemac.js +++ b/backend/src/core/proxy-utils/producers/surgemac.js @@ -141,10 +141,19 @@ function mihomo(proxy, type, opts) { dns: { enable: true, ipv6, - nameserver: [ - 'https://223.6.6.6/dns-query', - 'https://120.53.53.53/dns-query', - ], + 'default-nameserver': opts?.defaultNameserver || + proxy._defaultNameserver || [ + '180.76.76.76', + '52.80.52.52', + '119.28.28.28', + '223.6.6.6', + ], + nameserver: opts?.nameserver || + proxy._nameserver || [ + 'https://doh.pub/dns-query', + 'https://dns.alidns.com/dns-query', + 'https://doh-pure.onedns.net/dns-query', + ], }, proxies: [ {