From 440bc9d07a5ff686e46e7eba570134cb07ea43e0 Mon Sep 17 00:00:00 2001 From: Nik Mitev Date: Sun, 10 Aug 2025 15:01:26 +0100 Subject: [PATCH] removed loopback restriction --- liana-gui/src/installer/view/mod.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/liana-gui/src/installer/view/mod.rs b/liana-gui/src/installer/view/mod.rs index 2b5ae66e..68edb618 100644 --- a/liana-gui/src/installer/view/mod.rs +++ b/liana-gui/src/installer/view/mod.rs @@ -1150,17 +1150,6 @@ pub fn define_bitcoind<'a>( rpc_auth_vals: &RpcAuthValues, selected_auth_type: &RpcAuthType, ) -> Element<'a, Message> { - let is_loopback = if let Some((ip, _port)) = address.value.clone().rsplit_once(':') { - let (ipv4, ipv6) = (Ipv4Addr::from_str(ip), Ipv6Addr::from_str(ip)); - match (ipv4, ipv6) { - (_, Ok(ip)) => ip.is_loopback(), - (Ok(ip), _) => ip.is_loopback(), - _ => false, - } - } else { - false - }; - let col_address = Column::new() .push(text("Address:").bold()) .push( @@ -1173,19 +1162,6 @@ pub fn define_bitcoind<'a>( .size(text::P1_SIZE) .padding(10), ) - .push_maybe(if !is_loopback && address.valid { - Some( - iced::widget::Text::new( - "Connection to a remote Bitcoin node \ - is not supported. Insert an IP address bound to the same machine \ - running Liana (ignore this warning if that's already the case)", - ) - .style(theme::text::warning) - .size(text::CAPTION_SIZE), - ) - } else { - None - }) .spacing(10); let col_auth = Column::new()