mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-17 09:59:58 +00:00
detect user@domain style usernames in ssh quick connect - fixes #3026
This commit is contained in:
parent
d03211631a
commit
c290633e7e
@ -420,7 +420,9 @@ export class SSHService {
|
||||
let host = query
|
||||
let port = 22
|
||||
if (host.includes('@')) {
|
||||
[user, host] = host.split('@')
|
||||
const parts = host.split(/@/g)
|
||||
host = parts[parts.length - 1]
|
||||
user = parts.slice(0, parts.length - 1).join('@')
|
||||
}
|
||||
if (host.includes(':')) {
|
||||
port = parseInt(host.split(':')[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user