Skip to content

Commit

Permalink
fix(ip-restriction): return the named function (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jul 8, 2024
1 parent 71cdcf4 commit fbae337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/ip-restriction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fbae337

Please sign in to comment.