MCPcopy
hub / github.com/di-sukharev/opencommit / setServernameFromNonIpHost

Function setServernameFromNonIpHost

out/cli.cjs:70925–70933  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

70923 socket.on("error", onerror);
70924 socket.on("end", onend);
70925 read();
70926 });
70927}
70928
70929// node_modules/https-proxy-agent/dist/index.js
70930var debug3 = (0, import_debug2.default)("https-proxy-agent");
70931var setServernameFromNonIpHost = (options) => {
70932 if (options.servername === void 0 && options.host && !net2.isIP(options.host)) {
70933 return {
70934 ...options,
70935 servername: options.host
70936 };

Callers 1

connectMethod · 0.85

Calls 1

isIPMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…