init
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Context } from 'egg';
|
||||
|
||||
module.exports = () => {
|
||||
return async function parmsDecode(ctx: Context, next) {
|
||||
return async function parmsDecode(ctx: Context, next: () => Promise<any>) {
|
||||
|
||||
let clientIp = null;
|
||||
if (ctx.header['x-forwarded-for'] && (typeof ctx.header['x-forwarded-for'] == 'string')) {
|
||||
|
||||
Reference in New Issue
Block a user