mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00
SshProxy: reset trust status after setup completes.
The next backend that tries to use the connection we're now proxying is going to expect the seat's trust status to be in trusted mode, because that's how things normally start up when a backend is initialised. So we should set it back to that state before handing on to that backend.
This commit is contained in:
parent
5ca0a75636
commit
adf6b698e4
@ -251,6 +251,10 @@ static void try_send_ssh_to_socket(void *ctx)
|
||||
static void sshproxy_notify_session_started(Seat *seat)
|
||||
{
|
||||
SshProxy *sp = container_of(seat, SshProxy, seat);
|
||||
|
||||
if (sp->clientseat)
|
||||
seat_set_trust_status(sp->clientseat, true);
|
||||
|
||||
plug_log(sp->plug, PLUGLOG_CONNECT_SUCCESS, sp->addr, sp->port, NULL, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user