fix: proto code was mixing different ideas

This commit is contained in:
əlemi 2024-09-11 17:50:40 +02:00
parent 314b163b05
commit 422566a145
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -49,8 +49,8 @@ impl Config {
pub(crate) fn endpoint(&self) -> String { pub(crate) fn endpoint(&self) -> String {
format!( format!(
"{}{}:{}", "{}://{}:{}",
if self.tls() { "https://" } else { "http" }, if self.tls() { "https" } else { "http" },
self.host(), self.host(),
self.port() self.port()
) )