Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Add a partial implementation of th…
Browse files Browse the repository at this point in the history
…e BitTorrent peer protocol
  • Loading branch information
atomgardner committed May 23, 2023
1 parent d684db9 commit 715d39f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub(crate) enum Error {
UdpSocketReadTimeout { source: io::Error },
#[snafu(display("Failed to send on a UDP socket: {}", source))]
UdpSocketSend { source: io::Error },
#[snafu(display("Torrent verification failed."))]
#[snafu(display("DNS failure"))]
UnresolvedDomain,
#[snafu(display(
"Feature `{}` cannot be used without passing the `--unstable` flag",
Expand Down
2 changes: 1 addition & 1 deletion src/host_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl TryFrom<&HostPort> for SocketAddr {

fn try_from(node: &HostPort) -> Result<Self> {
match &node.host {
Host::Domain(_domain) => Err(Error::UnresolvedDomain),
Host::Domain(_) => Err(Error::UnresolvedDomain),
Host::Ipv4(ipv4) => Ok(SocketAddr::new(IpAddr::V4(*ipv4), node.port)),
Host::Ipv6(ipv6) => Ok(SocketAddr::new(IpAddr::V6(*ipv6), node.port)),
}
Expand Down

0 comments on commit 715d39f

Please sign in to comment.