Skip to content

Commit

Permalink
fix(backend): change port to 5252
Browse files Browse the repository at this point in the history
Fix conflict with InfluxDB (MichaIng/DietPi#4966)
  • Loading branch information
ravenclaw900 committed Dec 3, 2021
1 parent c1af165 commit 962ef1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TCP network port
# - Default: 8088
#port = 8088
# - Default: 5252
#port = 5252
# TLS for HTTPS
# - Default: false
#tls = false
Expand Down
2 changes: 1 addition & 1 deletion src/backend/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn config() -> Config {

#[allow(clippy::cast_sign_loss)]
#[allow(clippy::cast_possible_truncation)]
let port: u16 = cfg.get("port").unwrap_or(&Toml::Num(8088.0)).num() as u16;
let port: u16 = cfg.get("port").unwrap_or(&Toml::Num(5252.0)).num() as u16;

let tls = cfg.get("tls").unwrap_or(&Toml::Bool(false));
let mut cert = String::new();
Expand Down

0 comments on commit 962ef1d

Please sign in to comment.