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() )