X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/7c28d8d6a6a55baa18abdc83bbcdb2eba8ef6bb6..e223b7c7fb42431f9d4f7111c5df209d6b8b1d25:/unix/uxplink.c diff --git a/unix/uxplink.c b/unix/uxplink.c index 9d5f0016..9867df2e 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -873,6 +873,14 @@ int main(int argc, char **argv) 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. */ logctx = log_init(NULL, &cfg);