Fix bug : "IPCIDR is not a constructor" (#8400)

This commit is contained in:
dogcraft 2022-03-12 18:23:57 +08:00 committed by GitHub
parent 05608a3a9f
commit 5cf8a1141a

View File

@ -6,7 +6,7 @@ import { httpAgent, httpsAgent, StatusError } from './fetch.js';
import config from '@/config/index.js'; import config from '@/config/index.js';
import chalk from 'chalk'; import chalk from 'chalk';
import Logger from '@/services/logger.js'; import Logger from '@/services/logger.js';
import * as IPCIDR from 'ip-cidr'; import IPCIDR from 'ip-cidr';
import PrivateIp from 'private-ip'; import PrivateIp from 'private-ip';
const pipeline = util.promisify(stream.pipeline); const pipeline = util.promisify(stream.pipeline);