(config: SSHConnectionConfig)
| 632 | * otherwise generate same socket path, causing permission errors). |
| 633 | */ |
| 634 | export function getControlPath(config: SSHConnectionConfig): string { |
| 635 | const key = makeConnectionKey(config); |
| 636 | const hash = hashKey(key); |
| 637 | return path.join(os.tmpdir(), `mux-ssh-${hash}`); |
| 638 | } |
| 639 | |
| 640 | /** |
| 641 | * Generate stable key from config. |
no test coverage detected