Skip to content

A modern and elegant dashboard for network traffic visualization and analysis.

fix(collector): support self-signed HTTPS gateways and show real fetch errors (#88)

luoleie9939d2b173e
diff --git a/.env.example b/.env.example
index 7c910e2..3172b35 100644
--- a/.env.example
+++ b/.env.example
@@ -47,6 +47,11 @@ WS_EXTERNAL_PORT=3002
# 设置后这些源的跨源请求将被允许携带凭证。
# CORS_ORIGIN=
+# 网关 API 使用 HTTPS 且证书为自签(Surge http-api-tls、mihomo external-controller-tls)时,
+# 设为 1 仅对网关请求跳过证书校验(不影响 GeoIP / ClickHouse 等其他出站请求)。
+# 仅在可信局域网内使用;启用后启动时会打印警告。
+# BACKEND_TLS_INSECURE=1
+
# -----------------------------------------------------------------------------
# IP 地理查询配置(可选)
# -----------------------------------------------------------------------------
diff --git a/README.en.md b/README.en.md
index 87a3ef2..4b71477 100644
--- a/README.en.md
+++ b/README.en.md
@@ -418,6 +418,7 @@ The script will automatically detect and suggest available ports.
| `NEXT_PUBLIC_WS_PORT` | `3002` | WS direct-connection fallback port (**build-time only — setting this at Docker runtime has no effect**; use `WS_EXTERNAL_PORT` instead) | Only for custom source builds |
| `API_URL` | `http://localhost:3001` | Next.js `/api` rewrite target (mainly source/custom builds) | API listen address changed |
| `COOKIE_SECRET` | auto-generated | Cookie signing secret; if not fixed, sessions can be invalidated after restart when data dir is not persisted | Strongly recommended in production |
+| `BACKEND_TLS_INSECURE` | empty | Set to `1` to skip TLS certificate verification for gateway APIs only (Surge `http-api-tls`, mihomo `external-controller-tls` with self-signed certs). Logs a warning at startup | Gateway uses HTTPS with a self-signed / IP-mismatched certificate |
| `GEOIP_LOOKUP_PROVIDER` | `online` | IP geolocation source (`online` / `local`) | Default to local MMDB lookup |
| `GEOIP_ONLINE_API_URL` | `https://api.ipinfo.es/ipinfo` | Online IP geolocation API endpoint (must be compatible with `ipinfo.my` response schema) | Set only when you deploy a compatible endpoint |
| `FORCE_ACCESS_CONTROL_OFF` | `false` | Force disable access control (emergency recovery) | Temporary use only when token is lost |
diff --git a/README.md b/README.md
index ef6d47f..3c6dbd2 100644
--- a/README.md
+++ b/README.md
@@ -418,6 +418,7 @@ The script will automatically detect and suggest available ports.
| `NEXT_PUBLIC_WS_PORT` | `3002` | WS direct-connection fallback port (**build-time only — setting this at Docker runtime has no effect**; use `WS_EXTERNAL_PORT` instead) | Only for custom source builds |
| `API_URL` | `http://localhost:3001` | Next.js `/api` rewrite target (mainly source/custom builds) | API listen address changed |
| `COOKIE_SECRET` | auto-generated | Cookie signing secret; if not fixed, sessions can be invalidated after restart when data dir is not persisted | Strongly recommended in production |
+| `BACKEND_TLS_INSECURE` | empty | Set to `1` to skip TLS certificate verification for gateway APIs only (Surge `http-api-tls`, mihomo `external-controller-tls` with self-signed certs). Logs a warning at startup | Gateway uses HTTPS with a self-signed / IP-mismatched certificate |
| `GEOIP_LOOKUP_PROVIDER` | `online` | IP geolocation source (`online` / `local`) | Default to local MMDB lookup |
| `GEOIP_ONLINE_API_URL` | `https://api.ipinfo.es/ipinfo` | Online IP geolocation API endpoint (must be compatible with `ipinfo.my` response schema) | Set only when you deploy a compatible endpoint |
| `FORCE_ACCESS_CONTROL_OFF` | `false` | Force disable access control (emergency recovery) | Temporary use only when token is lost |
diff --git a/README.zh.md b/README.zh.md
index 0edb3a7..69c7bbd 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -409,6 +409,7 @@ curl -fsSL https://raw.githubusercontent.com/foru17/neko-master/main/setup.sh |
| `NEXT_PUBLIC_WS_PORT` | `3002` | WS 直连端口兜底值(**构建时注入,Docker 运行时设置无效**;Docker 场景请用 `WS_EXTERNAL_PORT`) | 仅源码自构建时需要自定义端口 |
| `API_URL` | `http://localhost:3001` | Next.js `/api` rewrite 目标(主要用于源码/自构建) | 你修改了 API 实际监听地址时 |
| `COOKIE_SECRET` | 自动生成 | Cookie 签名密钥;未固定时会自动生成(数据目录不持久化时重启后会话会失效) | 生产环境强烈建议固定配置 |
+| `BACKEND_TLS_INSECURE` | 空 | 设为 `1` 时仅对网关 API 跳过 TLS 证书校验(Surge `http-api-tls`、mihomo `external-controller-tls` 自签证书),启动时打印警告 | 网关走 HTTPS 且证书为自签 / 与 IP 不匹配时 |
| `GEOIP_LOOKUP_PROVIDER` | `online` | IP 地理查询来源(`online`/`local`) | 需要默认走本地 MMDB 查询时 |
| `GEOIP_ONLINE_API_URL` | `https://api.ipinfo.es/ipinfo` | 在线 IP 查询接口地址(需兼容 `ipinfo.my` 的响应结构) | 仅在你部署了兼容接口时设置 |
| `FORCE_ACCESS_CONTROL_OFF` | `false` | 强制关闭访问控制(紧急恢复) | 仅忘记密码临时使用 |
diff --git a/apps/collector/package.json b/apps/collector/package.json
index 6660ea9..f836bf5 100644
--- a/apps/collector/package.json
+++ b/apps/collector/package.json
@@ -20,6 +20,7 @@
"dotenv": "^17.4.2",
"fastify": "^5.8.5",
"maxmind": "^5.0.6",
+ "undici": "^7.30.0",
"ws": "^8.21.0"
},
"devDependencies": {
diff --git a/apps/collector/src/modules/app/app.ts b/apps/collector/src/modules/app/app.ts
index 82a29ca..59e7973 100644
--- a/apps/collector/src/modules/app/app.ts
+++ b/apps/collector/src/modules/app/app.ts
@@ -23,6 +23,7 @@ import { BackendService, backendController } from '../backend/index.js';
import { StatsService, statsController } from '../stats/index.js';
import { AuthService, authController } from '../auth/index.js';
import { configController } from '../config/index.js';
+import { gatewayFetch } from '../../shared/utils/gateway-fetch.js';
// Extend Fastify instance to include services
declare module 'fastify' {
@@ -379,7 +380,7 @@ export async function createApp(options: AppOptions) {
): Promise<Map<string, number>> => {
const map = new Map<string, number>();
try {
- const res = await fetch(`${gatewayBaseUrl}/providers/rules`, {
+ const res = await gatewayFetch(`${gatewayBaseUrl}/providers/rules`, {
headers: { ...headers, 'Content-Type': 'application/json' },
signal: AbortSignal.timeout(5000),
});
@@ -959,7 +960,7 @@ export async function createApp(options: AppOptions) {
try {
if (isSurge) {
// Surge: Get policies list and details
- const res = await fetch(`${gatewayBaseUrl}/v1/policies`, { headers });
+ const res = await gatewayFetch(`${gatewayBaseUrl}/v1/policies`, { headers });
if (!res.ok) {
return reply.status(res.status).send({ error: `Surge API error: ${res.status}` });
}
@@ -972,7 +973,7 @@ export async function createApp(options: AppOptions) {
const groupDetails = await Promise.allSettled(
policyGroups.map(async (groupName: string) => {
try {
- const detailRes = await fetch(
+ const detailRes = await gatewayFetch(
`${gatewayBaseUrl}/v1/policies/${encodeURIComponent(groupName)}`,
{ headers, signal: AbortSignal.timeout(5000) }
);
@@ -1002,7 +1003,7 @@ export async function createApp(options: AppOptions) {
return { proxies };
} else {
// Clash/OpenClash: Direct proxy to /proxies endpoint
- const res = await fetch(`${gatewayBaseUrl}/proxies`, {
+ const res = await gatewayFetch(`${gatewayBaseUrl}/proxies`, {
headers: { ...headers, 'Content-Type': 'application/json' }
});
if (!res.ok) {
@@ -1066,7 +1067,7 @@ export async function createApp(options: AppOptions) {
// If no cache or force refresh, fetch directly from Surge
if (Object.keys(providers).length === 0 || forceRefresh) {
try {
- const res = await fetch(`${gatewayBaseUrl}/v1/policies`, {
+ const res = await gatewayFetch(`${gatewayBaseUrl}/v1/policies`, {
headers,
signal: AbortSignal.timeout(10000)
});
@@ -1087,7 +1088,7 @@ export async function createApp(options: AppOptions) {
const groupDetails = await Promise.allSettled(
policyGroups.map(async (groupName: string) => {
try {
- const detailRes = await fetch(
+ const detailRes = await gatewayFetch(
`${gatewayBaseUrl}/v1/policy_groups/select?group_name=${encodeURIComponent(groupName)}`,
{ headers, signal: AbortSignal.timeout(5000) }
);
@@ -1153,7 +1154,7 @@ export async function createApp(options: AppOptions) {
};
} else {
// Clash/OpenClash: direct proxy
- const res = await fetch(`${gatewayBaseUrl}/providers/proxies`, {
+ const res = await gatewayFetch(`${gatewayBaseUrl}/providers/proxies`, {
headers: { ...headers, 'Content-Type': 'application/json' }
});
if (!res.ok) {
@@ -1235,7 +1236,7 @@ export async function createApp(options: AppOptions) {
try {
if (isSurge) {
// Surge uses /v1/rules endpoint
- const res = await fetch(`${gatewayBaseUrl}/v1/rules`, { headers });
+ const res = await gatewayFetch(`${gatewayBaseUrl}/v1/rules`, { headers });
if (!res.ok) {
return reply.status(res.status).send({ error: `Surge API error: ${res.status}` });
}
@@ -1262,7 +1263,7 @@ export async function createApp(options: AppOptions) {
};
} else {
// Clash/OpenClash uses /rules endpoint
- const res = await fetch(`${gatewayBaseUrl}/rules`, {
+ const res = await gatewayFetch(`${gatewayBaseUrl}/rules`, {
headers: { ...headers, 'Content-Type': 'application/json' }
});
if (!res.ok) {
diff --git a/apps/collector/src/modules/backend/backend.service.ts b/apps/collector/src/modules/backend/backend.service.ts
index 3337fde..ce433c9 100644
--- a/apps/collector/src/modules/backend/backend.service.ts
+++ b/apps/collector/src/modules/backend/backend.service.ts
@@ -23,6 +23,7 @@ import { loadClickHouseConfig, runClickHouseQuery } from '../clickhouse/clickhou
import type { ClickHouseConfig } from '../clickhouse/clickhouse.config.js';
import type { AuthService } from '../auth/auth.service.js';
+import { describeGatewayError, gatewayFetch, gatewayWsTlsOptions } from '../../shared/utils/gateway-fetch.js';
/**
* Mask URL for showcase mode - hides host, port, credentials
@@ -633,7 +634,7 @@ export class BackendService {
const WebSocket = (await import('ws')).default;
return new Promise((resolve) => {
- const ws = new WebSocket(fullUrl, { headers, timeout: 5000 });
+ const ws = new WebSocket(fullUrl, { headers, timeout: 5000, ...gatewayWsTlsOptions() });
let settled = false;
const timeout = setTimeout(() => {
if (settled) return;
@@ -655,8 +656,7 @@ export class BackendService {
});
ws.on('error', (error: unknown) => {
- const message = error instanceof Error ? error.message : 'Connection failed';
- finish({ success: false, message });
+ finish({ success: false, message: describeGatewayError(error) });
});
ws.on('close', (code: number) => {
@@ -689,7 +689,7 @@ export class BackendService {
headers['x-key'] = token;
}
- const response = await fetch(testUrl, {
+ const response = await gatewayFetch(testUrl, {
headers,
signal: AbortSignal.timeout(5000),
});
@@ -712,7 +712,7 @@ export class BackendService {
if (error.name === 'AbortError') {
return { success: false, message: 'Connection timeout - check if Surge HTTP API is enabled' };
}
- return { success: false, message: error.message };
+ return { success: false, message: describeGatewayError(error) };
}
return { success: false, message: 'Connection failed' };
}
diff --git a/apps/collector/src/modules/collector/gateway.collector.ts b/apps/collector/src/modules/collector/gateway.collector.ts
index 3f2efa5..4876058 100644
--- a/apps/collector/src/modules/collector/gateway.collector.ts
+++ b/apps/collector/src/modules/collector/gateway.collector.ts
@@ -7,6 +7,7 @@ import { realtimeStore } from "../realtime/realtime.store.js";
import { calculateBackoffDelay } from "../../shared/utils/backoff.js";
import { BatchBuffer } from "./batch-buffer.js";
import { isPreexistingConnection } from "./connection-baseline.js";
+import { gatewayWsTlsOptions } from "../../shared/utils/gateway-fetch.js";
// Stale connection cleanup constants
const STALE_CONNECTION_TIMEOUT = 5 * 60 * 1000; // 5 minutes
@@ -88,6 +89,7 @@ export class GatewayCollector {
this.ws = new WebSocket(this.url, {
headers,
followRedirects: true,
+ ...gatewayWsTlsOptions(),
});
this.ws.on("open", () => {
diff --git a/apps/collector/src/modules/collector/surge.collector.ts b/apps/collector/src/modules/collector/surge.collector.ts
index 207a3d2..e38fdd2 100644
--- a/apps/collector/src/modules/collector/surge.collector.ts
+++ b/apps/collector/src/modules/collector/surge.collector.ts
@@ -7,6 +7,7 @@ import type { SurgeRequest, SurgeRequestsData } from "@neko-master/shared";
import { calculateBackoffDelay } from "../../shared/utils/backoff.js";
import { BatchBuffer } from "./batch-buffer.js";
import { isPreexistingConnection } from "./connection-baseline.js";
+import { describeGatewayError, gatewayFetch } from "../../shared/utils/gateway-fetch.js";
// Debug configuration
const DEBUG_SURGE = process.env.DEBUG_SURGE === "true";
@@ -72,7 +73,7 @@ export class SurgeCollector {
this.consecutiveErrors++;
console.error(
`[SurgeCollector:${this.backendId}] Poll error (${this.consecutiveErrors}/${this.MAX_RETRY_ATTEMPTS}):`,
- error.message
+ describeGatewayError(error)
);
this.onError?.(error);
}
@@ -133,7 +134,7 @@ export class SurgeCollector {
headers["x-key"] = this.token;
}
- const response = await fetch(url, {
+ const response = await gatewayFetch(url, {
headers,
signal: AbortSignal.timeout(10000),
});
diff --git a/apps/collector/src/modules/surge/surge-policy-sync.ts b/apps/collector/src/modules/surge/surge-policy-sync.ts
index 4633d55..0a43b0f 100644
--- a/apps/collector/src/modules/surge/surge-policy-sync.ts
+++ b/apps/collector/src/modules/surge/surge-policy-sync.ts
@@ -6,6 +6,7 @@
*/
import type { StatsDatabase } from '../db/db.js';
+import { gatewayFetch } from '../../shared/utils/gateway-fetch.js';
interface SurgePolicyDetail {
policyGroup: string;
@@ -74,7 +75,7 @@ export class SurgePolicySyncService {
try {
// 1. Get policy groups list
- const res = await fetch(`${baseUrl}/v1/policies`, {
+ const res = await gatewayFetch(`${baseUrl}/v1/policies`, {
headers,
signal: AbortSignal.timeout(10000)
});
@@ -133,7 +134,7 @@ export class SurgePolicySyncService {
): Promise<SurgePolicyDetail | null> {
try {
// Surge uses /v1/policy_groups/select?group_name=xxx endpoint
- const res = await fetch(
+ const res = await gatewayFetch(
`${baseUrl}/v1/policy_groups/select?group_name=${encodeURIComponent(groupName)}`,
{ headers, signal: AbortSignal.timeout(5000) }
);
diff --git a/apps/collector/src/shared/utils/gateway-fetch.test.ts b/apps/collector/src/shared/utils/gateway-fetch.test.ts
new file mode 100644
index 0000000..eeb2d2c
--- /dev/null
+++ b/apps/collector/src/shared/utils/gateway-fetch.test.ts
@@ -0,0 +1,97 @@
+import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
+import { execFileSync } from "node:child_process";
+import { mkdtempSync, readFileSync, rmSync } from "node:fs";
+import { createServer, type Server } from "node:https";
+import type { AddressInfo } from "node:net";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { describeGatewayError, gatewayFetch } from "./gateway-fetch.js";
+
+// Generate a throwaway self-signed certificate at test time instead of
+// committing a private key. Skip if openssl is unavailable.
+let certDir = "";
+let tls: { key: Buffer; cert: Buffer } | null = null;
+try {
+ certDir = mkdtempSync(join(tmpdir(), "neko-gw-tls-"));
+ execFileSync(
+ "openssl",
+ [
+ "req", "-x509", "-newkey", "rsa:2048", "-nodes", "-days", "1",
+ "-subj", "/CN=surge.test",
+ "-keyout", join(certDir, "key.pem"),
+ "-out", join(certDir, "cert.pem"),
+ ],
+ { stdio: "ignore" },
+ );
+ tls = {
+ key: readFileSync(join(certDir, "key.pem")),
+ cert: readFileSync(join(certDir, "cert.pem")),
+ };
+} catch {
+ tls = null;
+}
+
+describe("describeGatewayError", () => {
+ it("surfaces the hidden cause code of a fetch failure", () => {
+ const err = new TypeError("fetch failed", {
+ cause: Object.assign(new Error("self-signed certificate in certificate chain"), {
+ code: "SELF_SIGNED_CERT_IN_CHAIN",
+ }),
+ });
+ const text = describeGatewayError(err);
+ expect(text).toContain("fetch failed");
+ expect(text).toContain("SELF_SIGNED_CERT_IN_CHAIN");
+ expect(text).toContain("BACKEND_TLS_INSECURE");
+ });
+
+ it("keeps plain errors unchanged", () => {
+ expect(describeGatewayError(new Error("HTTP 500"))).toBe("HTTP 500");
+ const refused = new TypeError("fetch failed", {
+ cause: Object.assign(new Error("connect ECONNREFUSED 127.0.0.1:1"), { code: "ECONNREFUSED" }),
+ });
+ expect(describeGatewayError(refused)).toBe(
+ "fetch failed (connect ECONNREFUSED 127.0.0.1:1)",
+ );
+ });
+});
+
+describe.skipIf(!tls)("gatewayFetch against a self-signed HTTPS gateway (issue #88)", () => {
+ let server: Server;
+ let url = "";
+
+ beforeAll(async () => {
+ server = createServer(tls!, (_req, res) => {
+ res.setHeader("content-type", "application/json");
+ res.end(JSON.stringify({ deviceName: "test-surge" }));
+ });
+ await new Promise<void>((r) => server.listen(0, "127.0.0.1", () => r()));
+ url = `https://127.0.0.1:${(server.address() as AddressInfo).port}/v1/environment`;
+ });
+
+ afterAll(async () => {
+ vi.unstubAllEnvs();
+ await new Promise<void>((r) => server.close(() => r()));
+ if (certDir) rmSync(certDir, { recursive: true, force: true });
+ });
+
+ it("fails with a visible certificate error by default", async () => {
+ vi.stubEnv("BACKEND_TLS_INSECURE", "");
+ const error = await gatewayFetch(url).then(
+ () => null,
+ (err: unknown) => err,
+ );
+ expect(error).toBeInstanceOf(Error);
+ expect(describeGatewayError(error)).toMatch(/SELF_SIGNED|CERT/);
+ });
+
+ it("connects when BACKEND_TLS_INSECURE=1 and warns once", async () => {
+ vi.stubEnv("BACKEND_TLS_INSECURE", "1");
+ const warn = vi.spyOn(console, "warn").mockImplementation(() => {});
+ const res = await gatewayFetch(url, { headers: { Accept: "application/json" } });
+ expect(res.ok).toBe(true);
+ expect(await res.json()).toEqual({ deviceName: "test-surge" });
+ await gatewayFetch(url);
+ expect(warn.mock.calls.filter((c) => String(c[0]).includes("BACKEND_TLS_INSECURE"))).toHaveLength(1);
+ warn.mockRestore();
+ });
+});
diff --git a/apps/collector/src/shared/utils/gateway-fetch.ts b/apps/collector/src/shared/utils/gateway-fetch.ts
new file mode 100644
index 0000000..bc5fc5f
--- /dev/null
+++ b/apps/collector/src/shared/utils/gateway-fetch.ts
@@ -0,0 +1,78 @@
+import { Agent, fetch as undiciFetch } from "undici";
+
+// Gateways (Surge with http-api-tls, mihomo with external-controller-tls)
+// often serve a self-signed certificate, or one whose SAN does not match the
+// LAN IP the collector uses. BACKEND_TLS_INSECURE=1 skips certificate
+// verification for gateway traffic only (issue #88). It must never be done via
+// NODE_TLS_REJECT_UNAUTHORIZED, which would also weaken GeoIP and ClickHouse.
+
+let insecureAgent: Agent | null = null;
+let warned = false;
+
+export function isGatewayTlsInsecure(): boolean {
+ const raw = (process.env.BACKEND_TLS_INSECURE || "").trim().toLowerCase();
+ const enabled = raw === "1" || raw === "true" || raw === "yes";
+ if (enabled && !warned) {
+ warned = true;
+ console.warn(
+ "[Gateway] BACKEND_TLS_INSECURE is enabled: TLS certificates of gateway APIs are NOT verified. Use only on trusted networks.",
+ );
+ }
+ return enabled;
+}
+
+/** Options to spread into `new WebSocket(url, options)` for gateway sockets. */
+export function gatewayWsTlsOptions(): { rejectUnauthorized?: boolean } {
+ return isGatewayTlsInsecure() ? { rejectUnauthorized: false } : {};
+}
+
+/**
+ * fetch() for gateway HTTP APIs. Identical to the global fetch unless
+ * BACKEND_TLS_INSECURE is set, in which case certificate verification is
+ * skipped for this request.
+ */
+export function gatewayFetch(
+ input: string | URL,
+ init?: RequestInit,
+): Promise<Response> {
+ if (!isGatewayTlsInsecure()) {
+ return fetch(input, init);
+ }
+ insecureAgent ??= new Agent({ connect: { rejectUnauthorized: false } });
+ return undiciFetch(input, {
+ ...(init as Parameters<typeof undiciFetch>[1]),
+ dispatcher: insecureAgent,
+ }) as unknown as Promise<Response>;
+}
+
+/**
+ * Error text for a failed gateway request. Node's fetch throws a bare
+ * "fetch failed" and hides the real reason (TLS, DNS, refused) in `cause`.
+ */
+export function describeGatewayError(error: unknown): string {
+ if (!(error instanceof Error)) return String(error || "Connection failed");
+ const cause = (error as Error & { cause?: unknown }).cause as
+ | { code?: unknown; message?: unknown }
+ | undefined;
+ const code = typeof cause?.code === "string" ? cause.code : "";
+ const causeMessage = typeof cause?.message === "string" ? cause.message : "";
+ if (!code && !causeMessage) return error.message;
+ const detail = code && causeMessage
+ ? causeMessage.includes(code) ? causeMessage : `${code}: ${causeMessage}`
+ : code || causeMessage;
+ const hint = isTlsVerificationCode(code)
+ ? " (gateway certificate not trusted; set BACKEND_TLS_INSECURE=1 to skip verification on trusted networks)"
+ : "";
+ return `${error.message} (${detail})${hint}`;
+}
+
+function isTlsVerificationCode(code: string): boolean {
+ return (
+ code === "SELF_SIGNED_CERT_IN_CHAIN" ||
+ code === "DEPTH_ZERO_SELF_SIGNED_CERT" ||
+ code === "UNABLE_TO_VERIFY_LEAF_SIGNATURE" ||
+ code === "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" ||
+ code === "CERT_HAS_EXPIRED" ||
+ code === "ERR_TLS_CERT_ALTNAME_INVALID"
+ );
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b533d69..01daa9c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,6 +38,9 @@ importers:
maxmind:
specifier: ^5.0.6
version: 5.0.6
+ undici:
+ specifier: ^7.30.0
+ version: 7.30.0
ws:
specifier: ^8.21.0
version: 8.21.0
@@ -5211,6 +5214,10 @@ packages:
resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==}
+ resolution: {integrity: sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==}
+ engines: {node: '>=20.18.1'}
+
resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==}
engines: {node: '>=4'}
@@ -8981,8 +8988,8 @@ snapshots:
'@next/eslint-plugin-next': 16.2.7
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
- eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
- eslint-plugin-import: 2.32.0([email protected])([email protected]([email protected]))
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 7.1.1([email protected]([email protected]))
@@ -9004,7 +9011,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.3
@@ -9015,21 +9022,21 @@ snapshots:
tinyglobby: 0.2.17
unrs-resolver: 1.12.2
optionalDependencies:
- eslint-plugin-import: 2.32.0([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
- eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9
@@ -9040,7 +9047,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.39.4([email protected])
eslint-import-resolver-node: 0.3.10
hasown: 2.0.4
is-core-module: 2.16.2
is-glob: 4.0.3
@@ -10879,6 +10886,8 @@ snapshots:
+