修复无法获得IP地址

This commit is contained in:
COOL 2022-10-26 20:42:06 +08:00
parent 1a8b28f55f
commit 95545591f2
1 changed files with 1 additions and 3 deletions

View File

@ -31,9 +31,7 @@ export class Utils {
if (!ip) {
ip = await this.getReqIP(ctx);
}
const bst = new ipdb.BaseStation(
`${this.baseDir}/app/comm/ipipfree.ipdb`
);
const bst = new ipdb.BaseStation(`${this.baseDir}/comm/ipipfree.ipdb`);
const result = bst.findInfo(ip, 'CN');
const addArr: any = [];
if (result) {