mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-21 19:07:59 +00:00
openssh: make option parsing case insensitive - #5559
This commit is contained in:
@@ -89,15 +89,16 @@ export class OpenSSHImporter extends SSHProfileImporter {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const mappedKey = {
|
const mappedKey = {
|
||||||
Hostname: 'host',
|
hostname: 'host',
|
||||||
Port: 'port',
|
host: 'host',
|
||||||
User: 'user',
|
port: 'port',
|
||||||
ForwardX11: 'x11',
|
user: 'user',
|
||||||
ServerAliveInterval: 'keepaliveInterval',
|
forwardx11: 'x11',
|
||||||
ServerAliveCountMax: 'keepaliveCountMax',
|
serveraliveinterval: 'keepaliveInterval',
|
||||||
ProxyCommand: 'proxyCommand',
|
serveralivecountmax: 'keepaliveCountMax',
|
||||||
ProxyJump: 'jumpHost',
|
proxycommand: 'proxyCommand',
|
||||||
}[key]
|
proxyjump: 'jumpHost',
|
||||||
|
}[key.toLowerCase()]
|
||||||
if (mappedKey) {
|
if (mappedKey) {
|
||||||
target[mappedKey] = value
|
target[mappedKey] = value
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user