mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user