removed loopback restriction

This commit is contained in:
Nik Mitev 2025-08-10 15:01:26 +01:00
parent 185a01cd22
commit 440bc9d07a

View File

@ -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()