summaryrefslogtreecommitdiff
path: root/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.sh')
-rw-r--r--testsuite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite.sh b/testsuite.sh
index 6baeabb..e0981d1 100644
--- a/testsuite.sh
+++ b/testsuite.sh
@@ -1,12 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3while true; do 3while true; do
4 request_string="GET /announce?info_hash=0123456789012345678%$(printf %02X $(( $RANDOM & 0xff )) )&\ 4 request_string="GET /announce?info_hash=0123456789012345678%$(printf %02X $(( $RANDOM & 0xf )) )&\
5ip=10.1.1.$(( $RANDOM & 0xff ))&port=$(( $RANDOM & 0xff )) HTTP/1.0\n" 5ip=10.1.1.$(( $RANDOM & 0xff ))&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
6 6
7# echo -e $request_string 7# echo -e $request_string
8# echo 8# echo
9 echo -e $request_string | nc 127.0.0.1 6969 >/dev/null & 9 echo -e $request_string | nc 127.0.0.1 6969 >/dev/null
10# echo 10# echo
11 11
12done 12done