removed loopback restriction
This commit is contained in:
parent
185a01cd22
commit
440bc9d07a
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user