mirror of
https://github.com/eugeny/tabby
synced 2026-07-08 08:01:17 +00:00
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
@@ -37,7 +37,12 @@ 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 ?? '/'}`;
|
||||
}
|
||||
console.log(uri);
|
||||
return uri
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user