From 422566a145b633b95fd6e99eae35ca2ab0a3018c Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 11 Sep 2024 17:50:40 +0200 Subject: [PATCH] fix: proto code was mixing different ideas --- src/api/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/config.rs b/src/api/config.rs index c5239be..0e57725 100644 --- a/src/api/config.rs +++ b/src/api/config.rs @@ -49,8 +49,8 @@ impl Config { pub(crate) fn endpoint(&self) -> String { format!( - "{}{}:{}", - if self.tls() { "https://" } else { "http" }, + "{}://{}:{}", + if self.tls() { "https" } else { "http" }, self.host(), self.port() )