修复无法获得IP地址
This commit is contained in:
parent
1a8b28f55f
commit
95545591f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue