Commit a16bb8fb authored by Niels Möller's avatar Niels Möller
Browse files

Check both directions of

forwarded channel.

Rev: src/testsuite/tcpip-local-test:1.7
parent 2922f65b
...@@ -11,10 +11,9 @@ need_tcputils ...@@ -11,10 +11,9 @@ need_tcputils
SERVERPORT=`expr $PORT + 1` SERVERPORT=`expr $PORT + 1`
PROXYPORT=`expr $PORT + 2` PROXYPORT=`expr $PORT + 2`
at_connect $SERVERPORT 1 'echo foo' \ at_connect $SERVERPORT 1 'grep bar && echo foo' \
&& spawn_lshd \ && spawn_lshd \
&& spawn_lsh -L $PROXYPORT:localhost:$SERVERPORT \ && spawn_lsh -L $PROXYPORT:localhost:$SERVERPORT \
&& sleep 30 \ && sleep 30 \
&& tcpconnect </dev/null localhost $PROXYPORT | grep foo \ && echo bar | tcpconnect localhost $PROXYPORT | grep foo \
&& test_success && test_success
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment