mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
fix: xmr/wow node connection was replacing onion addresses with an empty string
This commit is contained in:
parent
fed7ae91d9
commit
937550cb04
1 changed files with 2 additions and 1 deletions
|
@ -484,7 +484,8 @@ abstract class LibMoneroWallet<T extends CryptonoteCurrency>
|
||||||
Future<void> updateNode() async {
|
Future<void> updateNode() async {
|
||||||
final node = getCurrentNode();
|
final node = getCurrentNode();
|
||||||
|
|
||||||
final host = Uri.parse(node.host).host;
|
final host =
|
||||||
|
node.host.endsWith(".onion") ? node.host : Uri.parse(node.host).host;
|
||||||
({InternetAddress host, int port})? proxy;
|
({InternetAddress host, int port})? proxy;
|
||||||
if (prefs.useTor) {
|
if (prefs.useTor) {
|
||||||
if (node.clearnetEnabled && !node.torEnabled) {
|
if (node.clearnetEnabled && !node.torEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue