1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Set cfg.ssh_simple if there are no forwardings.

[originally from svn r7750]
This commit is contained in:
Ben Harris 2007-09-30 14:14:29 +00:00
parent c5996bcde5
commit ef370ee6fa

View File

@ -872,6 +872,14 @@ int main(int argc, char **argv)
sk_init(); sk_init();
uxsel_init(); uxsel_init();
/*
* Unix Plink doesn't provide any way to add forwardings after the
* connection is set up, so if there are none now, we can safely set
* the "simple" flag.
*/
if (cfg.protocol == PROT_SSH && !cfg.x11_forward && !cfg.agentfwd &&
cfg.portfwd[0] == '\0' && cfg.portfwd[1] == '\0')
cfg.ssh_simple = TRUE;
/* /*
* Start up the connection. * Start up the connection.
*/ */