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

Function toProbeHost

apps/cli/src/daemon.ts:229–235  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

227 });
228
229const toProbeHost = (hostname: string): string => {
230 const normalized = hostname.trim().toLowerCase();
231 if (normalized === "localhost" || normalized === "0.0.0.0") {
232 return "127.0.0.1";
233 }
234 return hostname;
235};
236
237const isPortAvailable = (input: {
238 hostname: string;

Callers 2

isPortAvailableFunction · 0.85
pickEphemeralPortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected