mirror of https://github.com/fafhrd91/actix-net
				
				
				
			fix MpTcp name
This commit is contained in:
		
							parent
							
								
									b3804361d2
								
							
						
					
					
						commit
						a7485f6ba0
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue