Function from_request

Source
pub fn from_request(
    announce_request: &AnnounceRequest,
    peer_ip: &IpAddr,
) -> Peer
Expand description

Extracts the peer::Peer info from the announce request.

ยงArguments

  • peer_ip - The real IP address of the peer, not the one in the announce request.