Skip to content

Commit f50aa69

Browse files
committed
logic update
1 parent 75805b8 commit f50aa69

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/fresh/src/middlewares/ip_filter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ export function ipFilter<State>(
107107
const addr = ctx.info.remoteAddr.hostname;
108108
const type = isIPv4(addr) ? "IPv4" : "IPv6";
109109

110-
if (type == undefined) {
111-
return new Response("Forbidden", { status: 403 });
112-
}
113-
114110
if (matchSubnets(addr, rules.denyList || [])) {
115111
return onBlock({ addr, type }, ctx);
116112
}

0 commit comments

Comments
 (0)