From fbae33719021b0120185611fd741036d3f1bbb8b Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 8 Jul 2024 23:32:04 +0900 Subject: [PATCH] fix(ip-restriction): return the named function (#3113) --- src/middleware/ip-restriction/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {