diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index 9869fe52..e1d3a2d3 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -127,7 +127,7 @@ impl ServerBuilder { /// /// [mptcp.dev]: https://www.mptcp.dev #[cfg(target_os = "linux")] - pub fn mptcp(mut self, mptcp_enabled: Mptcp) -> Self { + pub fn mptcp(mut self, mptcp_enabled: MpTcp) -> Self { self.mptcp = mptcp_enabled; self } diff --git a/actix-server/src/socket.rs b/actix-server/src/socket.rs index 63fbd525..486c0d46 100644 --- a/actix-server/src/socket.rs +++ b/actix-server/src/socket.rs @@ -232,7 +232,7 @@ pub(crate) fn create_mio_tcp_listener( #[cfg(not(target_os = "linux"))] let protocol = Protocol::TCP; #[cfg(target_os = "linux")] - let protocol = if matches!(mptcp, Mptcp::Disabled) { + let protocol = if matches!(mptcp, MpTcp::Disabled) { Protocol::TCP } else { Protocol::MPTCP