diff --git a/src/middleware/ip-restriction/index.ts b/src/middleware/ip-restriction/index.ts index 2c0db47c4..0e311ce43 100644 --- a/src/middleware/ip-restriction/index.ts +++ b/src/middleware/ip-restriction/index.ts @@ -145,7 +145,7 @@ export const ipRestriction = ( }), }) - return async function (c, next) { + return async function ipRestriction(c, next) { const connInfo = getIP(c) const addr = typeof connInfo === 'string' ? connInfo : connInfo.remote.address if (!addr) {