From da46c5873fba53f34281c177d7cbadb375e45ef0 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Wed, 4 Oct 2023 20:48:01 +0200 Subject: [PATCH] Fix typo Signed-off-by: Jacob Kiers --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 154318a..3f00f53 100644 --- a/src/config.rs +++ b/src/config.rs @@ -147,7 +147,7 @@ fn load_config(path: &str) -> Result { } }; - let upsteam_port = match upstream_url.port_or_known_default() { + let upstream_port = match upstream_url.port_or_known_default() { Some(port) => port, None => { return Err(ConfigError::Custom(format!( @@ -171,11 +171,11 @@ fn load_config(path: &str) -> Result { name.to_string(), Upstream::Custom(CustomUpstream { name: name.to_string(), - addr: format!("{}:{}", upstream_host, upsteam_port), + addr: format!("{}:{}", upstream_host, upstream_port), protocol: upstream_url.scheme().to_string(), addresses: Addr(Mutex::new(UpstreamAddress::new(format!( "{}:{}", - upstream_host, upsteam_port + upstream_host, upstream_port )))), ..Default::default() }),