MCPcopy
hub / github.com/coder/mux / resolveAllowHttpOriginEnvFlag

Function resolveAllowHttpOriginEnvFlag

src/node/services/serverService.ts:89–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89function resolveAllowHttpOriginEnvFlag(): boolean {
90 const raw = process.env.MUX_SERVER_ALLOW_HTTP_ORIGIN;
91 if (!raw) {
92 return false;
93 }
94
95 const normalized = raw.trim().toLowerCase();
96 return normalized === "1" || normalized === "true";
97}
98
99function getNonInternalInterfaceAddresses(
100 networkInterfaces: NetworkInterfaces,

Callers 1

startServerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected