From cb6279353719c476c88a2d613a89d4369f83b488 Mon Sep 17 00:00:00 2001 From: Levi Yan Date: Wed, 30 Oct 2024 14:44:10 +0800 Subject: [PATCH] fix: check if received host exists in config file --- src/remote-container.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote-container.ts b/src/remote-container.ts index f19af23..78e63ac 100644 --- a/src/remote-container.ts +++ b/src/remote-container.ts @@ -118,7 +118,7 @@ export default class RemoteContainer { for await (const line of reader) { // host format: hostname:port - if (line.includes(`Host ${host}:${port}`)) { + if (line.includes(`Host ${host}-${port}`)) { // the container ssh info exists canAppendSSHConfig = false break;