diff options
Diffstat (limited to 'regress/dynamic-forward.sh')
-rw-r--r-- | regress/dynamic-forward.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/dynamic-forward.sh b/regress/dynamic-forward.sh index d090814c5..afa1f103d 100644 --- a/regress/dynamic-forward.sh +++ b/regress/dynamic-forward.sh | |||
@@ -6,9 +6,9 @@ tid="dynamic forwarding" | |||
6 | PORT=4242 | 6 | PORT=4242 |
7 | FWDPORT=4243 | 7 | FWDPORT=4243 |
8 | 8 | ||
9 | if [ -x `which nc` ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then | 9 | if [ -x `which nc 2>&1` ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then |
10 | proxycmd="nc -x 127.0.0.1:$FWDPORT -X" | 10 | proxycmd="nc -x 127.0.0.1:$FWDPORT -X" |
11 | elif [ -x `which connect` ]; then | 11 | elif [ -x `which connect 2>&1` ]; then |
12 | proxycmd="connect -S 127.0.0.1:$FWDPORT -" | 12 | proxycmd="connect -S 127.0.0.1:$FWDPORT -" |
13 | else | 13 | else |
14 | echo "skipped (no suitable ProxyCommand found)" | 14 | echo "skipped (no suitable ProxyCommand found)" |