1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-11 13:13:59 +03:00

Fix Connection error while opening WinSCP session using IPV6 address

This commit is contained in:
Mxmilu 2023-12-24 12:37:11 +08:00
parent e4ceb3ee6a
commit 76931e69ad

View File

@ -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
}