Skip to content

Commit

Permalink
Merge pull request #9360 from Mxmilu666/master
Browse files Browse the repository at this point in the history
Fix Connection error while opening WinSCP session using IPV6 address
  • Loading branch information
Eugeny committed Dec 24, 2023
2 parents 86196c9 + 2507317 commit 353e5a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ export class SSHService {
if (password) {
uri += ':' + encodeURIComponent(password)
}
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`
if (profile.options.host.includes(':')) {
uri += `@[${profile.options.host}]:${profile.options.port}${cwd ?? '/'}`
}else {
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`
}
return uri
}

Expand Down

0 comments on commit 353e5a9

Please sign in to comment.