MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isAllowed

Function isAllowed

packages/server/src/middleware/hostnames.ts:162–162  ·  view source on GitHub ↗
(host: string | undefined)

Source from the content-addressed store, hash-verified

160 */
161export function createHostCheck(opts: HostCheckOptions): HostCheck {
162 const isAllowed = (host: string | undefined): boolean => isAllowedHost(host, opts);
163 const onRequest = async (
164 req: FastifyRequest,
165 reply: FastifyReply,

Callers 1

onRequestFunction · 0.85

Calls 1

isAllowedHostFunction · 0.85

Tested by

no test coverage detected