chengjie 5 miesięcy temu
rodzic
commit
4427db74e0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/api/web/webController.js

+ 1 - 1
src/api/web/webController.js

@@ -185,7 +185,7 @@ export async function Kylx365DBAdmin(ctx) {
185 185
 
186 186
     const allowedIP = '192.168.1.100';      // 您的本地IP
187 187
     const clientToken = ctx.req.headers['x-auth-token'];
188
-    const clientIP = ctx.ip || ctx.request.ip || 
188
+    let clientIP = ctx.ip || ctx.request.ip || 
189 189
                 (ctx.request.headers['x-forwarded-for'] || '').split(',')[0] || 
190 190
                 ctx.request.socket.remoteAddress;
191 191