Browse Source
Merge pull request #259 from sergeir82/fix-user-name
Fix ssh user name can not set in url parameter /ssh/:user. Every time…
pull/260/head
Cian Butler
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
8 deletions
-
src/server/command/index.ts
|
|
@ -31,14 +31,15 @@ export default ( |
|
|
|
args: !forcessh && localhost(host) |
|
|
|
? loginOptions(command, remoteAddress) |
|
|
|
: sshOptions( |
|
|
|
urlArgs(referer, { |
|
|
|
host: address(referer, user, host), |
|
|
|
port: `${port}`, |
|
|
|
pass: pass || '', |
|
|
|
command, |
|
|
|
auth, |
|
|
|
knownhosts, |
|
|
|
}), |
|
|
|
{ ...urlArgs(referer, { |
|
|
|
port: `${port}`, |
|
|
|
pass: pass || '', |
|
|
|
command, |
|
|
|
auth, |
|
|
|
knownhosts, |
|
|
|
}), |
|
|
|
host: address(referer, user, host) |
|
|
|
}, |
|
|
|
key |
|
|
|
), |
|
|
|
user: |
|
|
|