diff --git a/proxmox-http/src/client/rate_limited_stream.rs b/proxmox-http/src/client/rate_limited_stream.rs index ea993832..865a4261 100644 --- a/proxmox-http/src/client/rate_limited_stream.rs +++ b/proxmox-http/src/client/rate_limited_stream.rs @@ -24,6 +24,12 @@ pub struct RateLimitedStream { stream: S, } +impl RateLimitedStream { + pub fn peer_addr(&self) -> std::io::Result { + self.stream.peer_addr() + } +} + impl RateLimitedStream { /// Creates a new instance with reads and writes limited to the same `rate`.