diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 2939c579..f33114f3 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -29,6 +29,12 @@ $ SQUEAKNODE_WEBADMIN_ENABLED=TRUE SQUEAKNODE_WEBADMIN_LOGIN_DISABLED=TRUE SQUEAKNODE_WEBADMIN_ALLOW_CORS=TRUE SQUEAKNODE_NETWORK=testnet squeaknode --config config.ini ``` +To use a tor proxy, include the following environment variables: + ``` + $ SQUEAKNODE_NODE_TOR_PROXY_IP=127.0.0.1 SQUEAKNODE_NODE_TOR_PROXY_PORT=9150 + ``` + + #### Squeaknode frontend - Run the frontend react app in dev mode: diff --git a/frontend/src/squeakclient/requests.js b/frontend/src/squeakclient/requests.js index 06b0b114..a464efaf 100644 --- a/frontend/src/squeakclient/requests.js +++ b/frontend/src/squeakclient/requests.js @@ -1050,7 +1050,7 @@ export function getConnectedPeerRequest(host, port, handleResponse) { request, GetConnectedPeerReply.deserializeBinary, (response) => { - handleResponse(response); + handleResponse(response.getConnectedPeer()); }, ); // client.getConnectedPeer(request, {}, (err, response) => {