mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 06:42:44 +00:00
Merge pull request #9360 from Mxmilu666/master
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
commit
353e5a9550
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue