diff --git a/pingora-core/src/protocols/tls/rustls/stream.rs b/pingora-core/src/protocols/tls/rustls/stream.rs index a2c68112..13370d71 100644 --- a/pingora-core/src/protocols/tls/rustls/stream.rs +++ b/pingora-core/src/protocols/tls/rustls/stream.rs @@ -216,9 +216,15 @@ impl UniqueID for TlsStream where T: UniqueID, { + #[cfg(not(target_os = "windows"))] fn id(&self) -> i32 { self.tls.stream.as_ref().unwrap().get_ref().0.id() } + + #[cfg(target_os = "windows")] + fn id(&self) -> usize { + self.tls.stream.as_ref().unwrap().get_ref().0.id() + } } impl Ssl for TlsStream {