This commit is contained in:
undefined committed 2025-01-03 01:32:55 +08:00
1 parent 07165b1d38
commit b61014564c
6 files changed
+4 -7

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
import fs from 'fs';
import { Reader } from 'maxmind';
import { Context, findFileSync, Service } from 'hydrooj';
import {
Context, findFileSync, fs, Service,
} from 'hydrooj';
const buffer = fs.readFileSync(findFileSync('@hydrooj/geoip/GeoLite2-City.mmdb'));
const reader = new Reader(buffer);