diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-02-28 12:16:58 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-02-28 12:16:58 +0000 |
commit | d98d79d6cbc84f60f7f3eb7f48d2b058efc27aca (patch) | |
tree | 19dc9f370256c3137c2fcda0e3a8b9947b90cf67 /regress/usr.bin | |
parent | a205a6786db5fb392350a3e87291aa7bdde3fe90 (diff) |
Make dynamic-forward understand nc's new output. ok markus@
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/dynamic-forward.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/dynamic-forward.sh b/regress/usr.bin/ssh/dynamic-forward.sh index d090814c548..6a485ec6fdf 100644 --- a/regress/usr.bin/ssh/dynamic-forward.sh +++ b/regress/usr.bin/ssh/dynamic-forward.sh @@ -1,4 +1,4 @@ -# $OpenBSD: dynamic-forward.sh,v 1.2 2003/07/03 08:21:46 markus Exp $ +# $OpenBSD: dynamic-forward.sh,v 1.3 2004/02/28 12:16:57 dtucker Exp $ # Placed in the Public Domain. tid="dynamic forwarding" @@ -6,9 +6,9 @@ tid="dynamic forwarding" PORT=4242 FWDPORT=4243 -if [ -x `which nc` ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then +if [ -x "`which nc`" ] && nc -h 2>&1 | grep "proxy address" >/dev/null; then proxycmd="nc -x 127.0.0.1:$FWDPORT -X" -elif [ -x `which connect` ]; then +elif [ -x "`which connect`" ]; then proxycmd="connect -S 127.0.0.1:$FWDPORT -" else echo "skipped (no suitable ProxyCommand found)" |