mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 08:57:21 +00:00
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
parent
e4ceb3ee6a
commit
76931e69ad
1 changed files with 3 additions and 4 deletions
|
@ -38,11 +38,10 @@ export class SSHService {
|
|||
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 ?? '/'}`;
|
||||
uri += `@[${profile.options.host}]:${profile.options.port}${cwd ?? '/'}`;
|
||||
} else {
|
||||
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`;
|
||||
}
|
||||
console.log(uri);
|
||||
return uri
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue