mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-24 05:19:57 +00:00
Fix Connection error while opening WinSCP session using IPV6 address
This commit is contained in:
parent
76931e69ad
commit
1369b5b299
@ -38,11 +38,11 @@ export class SSHService {
|
|||||||
uri += ':' + encodeURIComponent(password)
|
uri += ':' + encodeURIComponent(password)
|
||||||
}
|
}
|
||||||
if (profile.options.host.includes(':')) {
|
if (profile.options.host.includes(':')) {
|
||||||
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 ?? '/'}`;
|
else {
|
||||||
|
uri += `@${profile.options.host}:${profile.options.port}${cwd ?? '/'}`
|
||||||
}
|
}
|
||||||
return uri
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async launchWinSCP (session: SSHSession): Promise<void> {
|
async launchWinSCP (session: SSHSession): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user