From decccd30256e7e4f1cb058217353bb5f439281e5 Mon Sep 17 00:00:00 2001 From: Dipper30 Date: Tue, 6 Jan 2026 16:34:37 +0800 Subject: [PATCH] deps: tegg dns cache plugin --- config/config.default.js | 4 ++++ package.json | 3 +++ 2 files changed, 7 insertions(+) diff --git a/config/config.default.js b/config/config.default.js index 534fba9891..45db01fe1f 100644 --- a/config/config.default.js +++ b/config/config.default.js @@ -307,6 +307,10 @@ module.exports = appInfo => { * @property {Boolean} allowH2 - use urllib@4 HttpClient and enable H2, default is false. Only works on Node.js >= 18 */ config.httpclient = { + /** + * @deprecated This option is deprecated. + * Use @eggjs/tegg-dns-cache instead. + */ enableDNSCache: false, dnsCacheLookupInterval: 10000, dnsCacheMaxLength: 1000, diff --git a/package.json b/package.json index d3c47c2b48..3ff80d112e 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "egg" ], "dependencies": { + "@eggjs/tegg-dns-cache": "^3.69.0", "@types/accepts": "^1.3.5", "@types/koa": "^2.13.5", "@types/koa-router": "^7.4.4", @@ -61,6 +62,8 @@ "ylru": "^1.3.2" }, "devDependencies": { + "@eggjs/tegg-config": "^3.69.0", + "@eggjs/tegg-plugin": "^3.69.0", "@eggjs/tsconfig": "^1.1.0", "@types/node": "^20.1.2", "@umijs/preset-react": "^2.1.6",