mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-08 01:34:54 +00:00
pass raw String address instead of full InternetAddress
and update tor troubleshooting docs to be more specific
This commit is contained in:
parent
93a3a3f9c1
commit
9a1e622d65
2 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue