fix: xmr/wow node connection was replacing onion addresses with an empty string

This commit is contained in:
julian 2024-12-09 16:26:53 -06:00 committed by julian-CStack
parent fed7ae91d9
commit 937550cb04

View file

@ -484,7 +484,8 @@ abstract class LibMoneroWallet<T extends CryptonoteCurrency>
Future<void> updateNode() async {
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;
if (prefs.useTor) {
if (node.clearnetEnabled && !node.torEnabled) {