Skip to content

Commit

Permalink
added resolution of OnionV2 and V3 for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Oct 18, 2023
1 parent 5b55eb9 commit 6011d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/ln/msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,11 +980,11 @@ impl std::net::ToSocketAddrs for SocketAddress {
(hostname.as_str(), *port).to_socket_addrs()
}
SocketAddress::OnionV2(..) => {
Err(std::io::Error::new(std::io::ErrorKind::Other, "Resolution of these \
Err(std::io::Error::new(std::io::ErrorKind::Other, "Resolution of OnionV2 \
addresses is currently unsupported."))
}
SocketAddress::OnionV3 { .. } => {
Err(std::io::Error::new(std::io::ErrorKind::Other, "Resolution of these \
Err(std::io::Error::new(std::io::ErrorKind::Other, "Resolution of OnionV3 \
addresses is currently unsupported."))
}
}
Expand Down

0 comments on commit 6011d63

Please sign in to comment.