From 2651ec1f4a674b2c8998afc9ad5b2895e11911dc Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Wed, 4 Oct 2023 20:51:16 +0200 Subject: [PATCH] Fix kcp module Signed-off-by: Jacob Kiers --- src/servers/protocol/kcp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/protocol/kcp.rs b/src/servers/protocol/kcp.rs index eaba266..aa9e471 100644 --- a/src/servers/protocol/kcp.rs +++ b/src/servers/protocol/kcp.rs @@ -42,7 +42,7 @@ async fn accept( ) -> Result<(), Box> { debug!("New connection from {:?}", peer); - let upstream_name = proxy.default.clone(); + let upstream_name = proxy.default_action.clone(); debug!("Upstream: {}", upstream_name); @@ -53,7 +53,7 @@ async fn accept( "No upstream named {:?} on server {:?}", proxy.default, proxy.name ); - return process(inbound, proxy.upstream.get(&proxy.default).unwrap()).await; + return process(inbound, proxy.upstream.get(&proxy.default_action).unwrap()).await; // ToDo: Remove unwrap and check default option } };