diff options
author | 2013-02-22 19:13:56 +0000 | |
---|---|---|
committer | 2013-02-22 19:13:56 +0000 | |
commit | df5ddbe3bd0414d275a659a71fe14b985d2dd56a (patch) | |
tree | 00ada80591129addbc41f855d44b70fef299ba07 /usr.bin/ssh/sshconnect.c | |
parent | Document signals dhclient currently pays attention to. (diff) | |
download | wireguard-openbsd-df5ddbe3bd0414d275a659a71fe14b985d2dd56a.tar.xz wireguard-openbsd-df5ddbe3bd0414d275a659a71fe14b985d2dd56a.zip |
support ProxyCommand=- (stdin/out already point to the proxy); ok djm@
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index 79a7e305313..f377cfa3b7f 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.c,v 1.236 2012/09/14 16:51:34 markus Exp $ */ +/* $OpenBSD: sshconnect.c,v 1.237 2013/02/22 19:13:56 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -79,6 +79,13 @@ ssh_proxy_connect(const char *host, u_short port, const char *proxy_command) pid_t pid; char *shell, strport[NI_MAXSERV]; + if (!strcmp(proxy_command, "-")) { + packet_set_connection(STDIN_FILENO, STDOUT_FILENO); + packet_set_timeout(options.server_alive_interval, + options.server_alive_count_max); + return 0; + } + if ((shell = getenv("SHELL")) == NULL || *shell == '\0') shell = _PATH_BSHELL; |