MCPcopy Create free account
hub / github.com/pingdotgg/t3code / targetConnectionKey

Function targetConnectionKey

packages/ssh/src/command.ts:72–74  ·  view source on GitHub ↗
(target: DesktopSshEnvironmentTarget)

Source from the content-addressed store, hash-verified

70}
71
72export function targetConnectionKey(target: DesktopSshEnvironmentTarget): string {
73 return `${target.alias}\u0000${target.hostname}\u0000${target.username ?? ""}\u0000${target.port ?? ""}`;
74}
75
76export function remoteStateKey(target: DesktopSshEnvironmentTarget): string {
77 return NodeCrypto.createHash("sha256")

Callers 2

tunnel.tsFile · 0.90
remoteStateKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected