Skip to content

Commit

Permalink
Pr/fix config api (#24)
Browse files Browse the repository at this point in the history
* fix. default config

* fix. http protocol for host config
  • Loading branch information
juliusl authored Feb 18, 2023
1 parent a78ef78 commit a8ebd65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proxy/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ async fn _handle_config(
let app_host = context
.search()
.find_symbol("app_host")
.unwrap_or("http://localhost:8578".to_string());
.unwrap_or("localhost:8578".to_string());

let app_host = format!("http://{app_host}");

let hosts_config = if ns != "_default" {
MirrorHost::get_hosts_config(&ns, app_host, true, stream_format)
Expand Down

0 comments on commit a8ebd65

Please sign in to comment.