fix: check if received host exists in config file
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user