Skip to content

Commit

Permalink
fix spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoDios committed Sep 23, 2024
1 parent 74ead55 commit d262c1a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Compatible with all librespeed clients :
# enable and use TLS option; if enable it, you need to prepare certificates and private keys
enable_tls=false
tls_cet_file=""
tls_cert_file=""
tls_key_file=""
```
Expand Down
2 changes: 1 addition & 1 deletion configs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ database_file="speedtest.db"

# enable and use TLS option; if enable it, you need to prepare certificates and private keys
enable_tls=false
tls_cet_file=""
tls_cert_file=""
tls_key_file=""
4 changes: 2 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct ServerConfig {
pub database_password : Option<String>,
pub database_file : Option<String>,
pub enable_tls : bool,
pub tls_cet_file : String,
pub tls_cert_file : String,
pub tls_key_file : String
}

Expand All @@ -51,7 +51,7 @@ impl Default for ServerConfig {
database_password: None,
database_file: None,
enable_tls: false,
tls_cet_file: "".to_string(),
tls_cert_file: "".to_string(),
tls_key_file: "".to_string(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/http/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl HttpServer {
info!("Server base url : {}/",config.base_url);
let mut tls_acceptor = None;
if config.enable_tls {
tls_acceptor = Some(setup_tls_acceptor(&config.tls_cet_file,&config.tls_key_file)?);
tls_acceptor = Some(setup_tls_acceptor(&config.tls_cert_file,&config.tls_key_file)?);
}
Ok(HttpServer {
tcp_socket,
Expand Down

0 comments on commit d262c1a

Please sign in to comment.