mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Set cfg.ssh_simple if there are no forwardings.
[originally from svn r7750]
This commit is contained in:
parent
c5996bcde5
commit
ef370ee6fa
@ -872,6 +872,14 @@ int main(int argc, char **argv)
|
||||
sk_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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user