mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
fix: proto code was mixing different ideas
This commit is contained in:
parent
314b163b05
commit
422566a145
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue