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

Function makeConnectionKey

src/node/runtime/SSH2ConnectionPool.ts:132–140  ·  view source on GitHub ↗
(config: SSHConnectionConfig)

Source from the content-addressed store, hash-verified

130}
131
132function makeConnectionKey(config: SSHConnectionConfig): string {
133 const parts = [
134 getDefaultUsername(),
135 config.host,
136 config.port?.toString() ?? "22",
137 config.identityFile ?? "default",
138 ];
139 return parts.join(":");
140}
141
142function sanitizeProxyCommand(
143 command: string,

Callers 4

acquireConnectionMethod · 0.70
markHealthyMethod · 0.70
reportFailureMethod · 0.70
connectMethod · 0.70

Calls 1

getDefaultUsernameFunction · 0.70

Tested by

no test coverage detected