~mdw
/
sgt
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c28d8d
)
Set cfg.ssh_simple if there are no forwardings.
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 30 Sep 2007 14:14:29 +0000
(14:14 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 30 Sep 2007 14:14:29 +0000
(14:14 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@7750
cda61777
-01e9-0310-a592-
d414129be87e
unix/uxplink.c
patch
|
blob
|
blame
|
history
diff --git
a/unix/uxplink.c
b/unix/uxplink.c
index
9d5f001
..
9867df2
100644
(file)
--- 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);