api2/node/termproxy: fix user in worker task

'username' here is without realm, but we really want to use user@realm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-07-27 08:54:48 +02:00 committed by Wolfgang Bumiller
parent 1fc82c41f2
commit f39a900722

View File

@ -136,7 +136,7 @@ async fn termproxy(
let upid = WorkerTask::spawn(
"termproxy",
None,
&username,
&userid,
false,
move |worker| async move {
// move inside the worker so that it survives and does not close the port