Fix get connected peer request (#1228)

This commit is contained in:
Jonathan Zernik 2021-09-08 14:00:57 -07:00 committed by GitHub
parent eb3cfc01de
commit db851936a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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:

View file

@ -1050,7 +1050,7 @@ export function getConnectedPeerRequest(host, port, handleResponse) {
request,
GetConnectedPeerReply.deserializeBinary,
(response) => {
handleResponse(response);
handleResponse(response.getConnectedPeer());
},
);
// client.getConnectedPeer(request, {}, (err, response) => {