MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isLoopbackHost

Function isLoopbackHost

packages/app/src/web/server-connection-menu.tsx:163–164  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

161};
162
163const isLoopbackHost = (host: string): boolean =>
164 host === "localhost" || host === "127.0.0.1" || host === "::1" || host === "[::1]";
165
166const isLoopbackConnection = (connection: ExecutorServerConnection): boolean => {
167 const url = new URL(connection.origin);

Callers 2

isLoopbackConnectionFunction · 0.85
sameLoopbackServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected