socksx::utilFunction get_original_dst
Source pub fn get_original_dst<S: AsFd>(socket: &S) -> Result<SocketAddr>
Expand description
Retrieves the original destination address from a socket on a Linux system.
§Parameters
socket: A reference to a socket implementing AsRawFd.
§Returns
Returns a Result containing the original SocketAddr or an error.