We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75805b8 commit f50aa69Copy full SHA for f50aa69
packages/fresh/src/middlewares/ip_filter.ts
@@ -107,10 +107,6 @@ export function ipFilter<State>(
107
const addr = ctx.info.remoteAddr.hostname;
108
const type = isIPv4(addr) ? "IPv4" : "IPv6";
109
110
- if (type == undefined) {
111
- return new Response("Forbidden", { status: 403 });
112
- }
113
-
114
if (matchSubnets(addr, rules.denyList || [])) {
115
return onBlock({ addr, type }, ctx);
116
}
0 commit comments