fix MpTcp name

This commit is contained in:
Rob Ede 2023-07-17 03:50:29 +01:00
parent b3804361d2
commit a7485f6ba0
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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