fix: check if received host exists in config file

This commit is contained in:
Levi Yan
2024-10-30 14:44:10 +08:00
parent 7f222e6720
commit cb62793537

View File

@@ -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;