MCPcopy
hub / github.com/cpaczek/skylight / test

Function test

server/src/allowed-hosts.ts:110–115  ·  view source on GitHub ↗
(rawHost: string | undefined)

Source from the content-addressed store, hash-verified

108
109 return {
110 test(rawHost: string | undefined): boolean {
111 if (!rawHost) return false;
112 const host = stripPort(rawHost).toLowerCase();
113 if (!host) return false;
114 return testHostname(host);
115 },
116 describe(): string {
117 const parts = [
118 "localhost / 127.0.0.0/8 / [::1]",

Callers

nothing calls this directly

Calls 2

stripPortFunction · 0.85
testHostnameFunction · 0.85

Tested by

no test coverage detected