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) {
|
for await (const line of reader) {
|
||||||
// host format: hostname:port
|
// host format: hostname:port
|
||||||
if (line.includes(`Host ${host}:${port}`)) {
|
if (line.includes(`Host ${host}-${port}`)) {
|
||||||
// the container ssh info exists
|
// the container ssh info exists
|
||||||
canAppendSSHConfig = false
|
canAppendSSHConfig = false
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user