pass raw String address instead of full InternetAddress

and update tor troubleshooting docs to be more specific
This commit is contained in:
sneurlax 2024-04-19 16:27:33 -05:00
parent 93a3a3f9c1
commit 9a1e622d65
2 changed files with 6 additions and 3 deletions

View file

@ -205,4 +205,4 @@ Run with `-v` or `--verbose` to see a more detailed error. Certain exceptions (
## Tor
To test Tor usage, run Stack Wallet from Android Studio. Click the Flutter DevTools icon in the Run tab (next to the Hot Reload and Hot Restart buttons) and navigate to the Network tab. Connections using Tor will show as `GET InternetAddress('127.0.0.1', IPv4) 101 ws`. Connections outside of Tor will show the destination address directly.
To test Tor usage, run Stack Wallet from Android Studio. Click the Flutter DevTools icon in the Run tab (next to the Hot Reload and Hot Restart buttons) and navigate to the Network tab. Connections using Tor will show as `GET InternetAddress('127.0.0.1', IPv4) 101 ws`. Connections outside of Tor will show the destination address directly (although some Tor requests may also show the destination address directly, check the Headers take for *eg.* `{localPort: 59940, remoteAddress: 127.0.0.1, remotePort: 6725}`. `localPort` should match your Tor port.

View file

@ -421,8 +421,11 @@ class SolanaWallet extends Bip39Wallet<Solana> {
TorService.sharedInstance.getProxyInfo();
// If Tor is enabled, pass the optional proxyInfo to the Solana RpcClient.
rpcClient = RpcClient("${getCurrentNode().host}:${getCurrentNode().port}",
proxyInfo: {'host': proxyInfo.host, 'port': proxyInfo.port});
} else {}
proxyInfo: {'host': proxyInfo.host.address, 'port': proxyInfo.port});
} else {
rpcClient ??=
RpcClient("${getCurrentNode().host}:${getCurrentNode().port}");
}
return;
}
}