This commit is contained in:
MagicalKudzu
2025-12-10 17:23:01 +08:00
parent 34deeeb3a8
commit 787538238e
35 changed files with 721 additions and 453 deletions

View File

@@ -225,8 +225,8 @@ async function consturctServer(moduleDefs) {
const obj = [...params]
let ip = req.ip
if (ip.substr(0, 7) == '::ffff:') {
ip = ip.substr(7)
if (ip.substring(0, 7) == '::ffff:') {
ip = ip.substring(7)
}
if (ip == '::1') {
ip = global.cnIp