Quick fixes

This commit is contained in:
Quentin Dufour 2019-03-05 16:32:01 +01:00
parent c322c9acff
commit ba8dcc53ab
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,6 @@
tor -f /etc/torrc &
sleep 2
mkdir -p ./shared
donar -a naive -c ./shared/onion_services.pub -r 9000 &
donar -a naive -c -o ./shared/onion_services.pub -r 9000 &
measlat -h 127.13.3.7 -p 9000 # Used to wait for connections
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > `mktemp -p ./res res-XXXXXXXXXXXXXXXX.txt`

View file

@ -62,7 +62,7 @@ int configure_tcp_clients(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdin
err = socks5_connect_dns(fdinfo->fd, target_host, app_ctx->ports[pos]);
if (err < 0) goto on_socks5_err;
app_ctx->client_sock[pos].state = SOCKS5_STATE_ACK;
printf("Socket %d/%d %s:%d is connecting...\n", pos+1, CLIENT_PORT_SIZE, target_host, app_ctx->ports[pos]);
printf("Socket %d/%d %s:%d is connecting...\n", pos+1, CLIENT_PORT_SIZE, target_host, app_ctx->ports[pos]);
break;
case SOCKS5_STATE_ACK:
//@FIXME: We suppose that we will be able to do the whole read at once which is wrong too