]> andersk Git - openssh.git/blobdiff - regress/dynamic-forward.sh
- (dtucker) [sshd.c] Clear loginmsg in postauth monitor, prevents doubling
[openssh.git] / regress / dynamic-forward.sh
index 2b0b825d0d6ea375514dcc09dc77fa73aee35cfc..392fc1978e222311f4300160b7b1e880a4597f6e 100644 (file)
@@ -1,13 +1,13 @@
-#      $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"
 
-PORT=4242
-FWDPORT=4243
+FWDPORT=`expr $PORT + 1`
+
 DATA=/bin/ls${EXEEXT}
 
-if have_prog nc && nc -h 2>&1 | grep "proxy address" >/dev/null; then
+if have_prog nc && nc -h 2>&1 | grep "proxy address" >/dev/null; then
        proxycmd="nc -x 127.0.0.1:$FWDPORT -X"
 elif have_prog connect; then
        proxycmd="connect -S 127.0.0.1:$FWDPORT -"
This page took 0.243313 seconds and 4 git commands to generate.