mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 14:52:45 +00:00
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
parent
76931e69ad
commit
1369b5b299
1 changed files with 6 additions and 6 deletions
|
@ -37,12 +37,12 @@ export class SSHService {
|
|||
if (password) {
|
||||
uri += ':' + encodeURIComponent(password)
|
||||
}
|
||||
if (profile.options.host.includes(':')) {
|
||||
uri += `@[${profile.options.host}]:${profile.options.port}${cwd ?? '/'}`;
|
||||
} else {
|
||||
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`;
|
||||
}
|
||||
return uri
|
||||
if (profile.options.host.includes(':')) {
|
||||
uri += `@[${profile.options.host}]:${profile.options.port}${cwd ?? '/'}`
|
||||
}
|
||||
else {
|
||||
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`
|
||||
}
|
||||
}
|
||||
|
||||
async launchWinSCP (session: SSHSession): Promise<void> {
|
||||
|
|
Loading…
Reference in a new issue