Skip to content

Commit 212aa77

Browse files
committed
fix: 修复阿里 httpdns edns
1 parent 4c5c9ba commit 212aa77

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.19.65",
3+
"version": "2.19.66",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/processors/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,11 @@ const DOMAIN_RESOLVERS = {
623623
const cached = resourceCache.get(id);
624624
if (!noCache && cached) return cached;
625625
const resp = await $.http.get({
626-
url: `http://223.6.6.6/resolve?edns_client_subnet=${edns}/24&name=${encodeURIComponent(
627-
domain,
628-
)}&type=${type === 'IPv6' ? 'AAAA' : 'A'}&short=1`,
626+
url: `http://223.6.6.6/resolve?edns_client_subnet=${edns}/${
627+
isIPv4(edns) ? 24 : 56
628+
}&name=${encodeURIComponent(domain)}&type=${
629+
type === 'IPv6' ? 'AAAA' : 'A'
630+
}&short=1`,
629631
headers: {
630632
accept: 'application/dns-json',
631633
},

0 commit comments

Comments
 (0)