From 5cf8a1141a1e274f329b2a0a9be7ad2e1ac2c635 Mon Sep 17 00:00:00 2001 From: dogcraft Date: Sat, 12 Mar 2022 18:23:57 +0800 Subject: [PATCH] Fix bug : "IPCIDR is not a constructor" (#8400) --- packages/backend/src/misc/download-url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/download-url.ts b/packages/backend/src/misc/download-url.ts index 21eee57b3..7c57b140e 100644 --- a/packages/backend/src/misc/download-url.ts +++ b/packages/backend/src/misc/download-url.ts @@ -6,7 +6,7 @@ import { httpAgent, httpsAgent, StatusError } from './fetch.js'; import config from '@/config/index.js'; import chalk from 'chalk'; import Logger from '@/services/logger.js'; -import * as IPCIDR from 'ip-cidr'; +import IPCIDR from 'ip-cidr'; import PrivateIp from 'private-ip'; const pipeline = util.promisify(stream.pipeline);