diff --git a/rust/connlib/tunnel/src/client.rs b/rust/connlib/tunnel/src/client.rs index 750dc0167..58c8620e1 100644 --- a/rust/connlib/tunnel/src/client.rs +++ b/rust/connlib/tunnel/src/client.rs @@ -299,17 +299,17 @@ impl ClientState { } } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip4(&self) -> Option { Some(self.interface_config.as_ref()?.ipv4) } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip6(&self) -> Option { Some(self.interface_config.as_ref()?.ipv6) } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip_for(&self, dst: IpAddr) -> Option { Some(match dst { IpAddr::V4(_) => self.tunnel_ip4()?.into(),