From a7a06aa5abd302c99e82f53873c72a3eb7a8b081 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 28 Jun 2018 10:24:24 +0200 Subject: [PATCH] Fix wrong endpoint in and_then (#278) --- core/src/transport/and_then.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/transport/and_then.rs b/core/src/transport/and_then.rs index 6ebb15fe..94b341bf 100644 --- a/core/src/transport/and_then.rs +++ b/core/src/transport/and_then.rs @@ -101,7 +101,7 @@ where let future = dialed_fut // Try to negotiate the protocol. .and_then(move |(connection, client_addr)| { - upgrade(connection, Endpoint::Listener, client_addr) + upgrade(connection, Endpoint::Dialer, client_addr) }); Ok(Box::new(future))