ssh/tailssh: use lu.Username not lu.Name.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2022-03-08 22:11:31 -08:00 committed by Maisem Ali
parent 06c147d848
commit 598c7a22e7

View File

@ -65,7 +65,7 @@ func newIncubatorCommand(ctx context.Context, ci *sshConnInfo, lu *user.User, ta
"be-child", "be-child",
"ssh", "ssh",
"--uid=" + lu.Uid, "--uid=" + lu.Uid,
"--local-user=" + lu.Name, "--local-user=" + lu.Username,
"--remote-user=" + remoteUser, "--remote-user=" + remoteUser,
"--remote-ip=" + ci.src.IP().String(), "--remote-ip=" + ci.src.IP().String(),
"--cmd=" + name, "--cmd=" + name,