MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / isLocalIpAddress

Function isLocalIpAddress

apps/web/utilities/middlewareHelper.ts:53–58  ·  view source on GitHub ↗
(hostname: string | null)

Source from the content-addressed store, hash-verified

51 userAgent: string | null;
52}) {
53 function isLocalIpAddress(hostname: string | null) {
54 if (!hostname) {
55 return false;
56 }
57 return hostname.startsWith('192.168.1.');
58 }
59 if (isLocalIpAddress(hostname)) {
60 return;
61 }

Callers 1

rewriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected