Skip to content

Commit

Permalink
feat(pkarr): add Endpoint::port() getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Nov 27, 2024
1 parent 45e905d commit e5592c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkarr/src/extra/endpoints/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ impl Endpoint {
&self.target
}

pub fn port(&self) -> u16 {
self.port
}

/// Return the [PublicKey] of the [SignedPacket] this endpoint was found at.
///
/// This is useful as the [PublicKey] of the endpoint (server), and could be
Expand Down

0 comments on commit e5592c5

Please sign in to comment.