MCPcopy Create free account
hub / github.com/bytebase/dbhub / parseJumpHosts

Function parseJumpHosts

src/utils/ssh-config-parser.ts:335–345  ·  view source on GitHub ↗
(proxyJump: string)

Source from the content-addressed store, hash-verified

333 * @returns Array of parsed JumpHost objects in connection order
334 */
335export function parseJumpHosts(proxyJump: string): JumpHost[] {
336 if (!proxyJump || proxyJump.trim() === '' || proxyJump.toLowerCase() === 'none') {
337 return [];
338 }
339
340 return proxyJump
341 .split(',')
342 .map(s => s.trim())
343 .filter(s => s.length > 0)
344 .map(parseJumpHost);
345}
346
347/**
348 * Resolve a ProxyJump string into a fully-resolved jump-host chain.

Callers 2

establishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected