Skip to content

Commit

Permalink
Fix Connection error while opening WinSCP session using IPV6 address
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxmilu666 committed Dec 24, 2023
1 parent 86196c9 commit e4ceb3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tabby-ssh/src/services/ssh.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export class SSHService {
if (password) {
uri += ':' + encodeURIComponent(password)
}
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`
if (profile.options.host.includes(':')) {

Check failure on line 40 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
uri += `@[${profile.options.host}]:${profile.options.port}${cwd ?? '/'}`;

Check failure on line 41 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Extra semicolon

Check failure on line 41 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
} else {

Check failure on line 42 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Expected indentation of 8 spaces but found 10

Check failure on line 42 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`;

Check failure on line 43 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Extra semicolon

Check failure on line 43 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
}

Check failure on line 44 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Expected indentation of 8 spaces but found 10
console.log(uri);

Check failure on line 45 in tabby-ssh/src/services/ssh.service.ts

View workflow job for this annotation

GitHub Actions / Lint

Extra semicolon
return uri
}

Expand Down

0 comments on commit e4ceb3e

Please sign in to comment.