tor_multipath_voip/scripts/container/orig-client

10 lines
374 B
Plaintext
Raw Permalink Normal View History

2019-03-11 14:41:42 +00:00
#!/bin/bash
2019-05-21 14:41:03 +00:00
mkdir -p $4/{log,shared,res}
2019-05-22 14:30:54 +00:00
2019-09-02 15:09:58 +00:00
pushd $4/shared > /dev/null
2019-05-22 14:30:54 +00:00
HS="`cat onion_services.pub | head -n1`.onion"
2019-09-02 15:09:58 +00:00
popd > /dev/null
2019-05-22 14:30:54 +00:00
2019-09-25 07:25:29 +00:00
measlat -h $HS -p 7500 -t tor -r -s $3 > /dev/null 2> $4/log/client-bootstrap-stderr.log # Used to wait for connections
measlat -h $HS -p 7500 -t tor -c $1 -i $2 -s $3 > $4/log/client-measlat-stdout.log 2> $4/log/client-measlat-stderr.log