fn sanitize_socket(socket: &SocketAddr) -> Result<(), Error>