Skip to content

Commit

Permalink
renamed cli arg
Browse files Browse the repository at this point in the history
  • Loading branch information
r-birkner committed Sep 25, 2024
1 parent 028e28b commit 9d3e931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub struct HttpServer {

/// Option to only serve HTTP instead for testing.
#[clap(env, long)]
pub insecure_serve_http_only: bool,
pub http_server_insecure_serve_http_only: bool,
}

#[derive(Args)]
Expand Down
4 changes: 2 additions & 2 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub async fn main(cli: &Cli) -> Result<(), Error> {
.await?;

// Set up HTTP router (redirecting to HTTPS or serving all endpoints)
let http_router = if !cli.http_server.insecure_serve_http_only {
let http_router = if !cli.http_server.http_server_insecure_serve_http_only {
Router::new().fallback(routing::redirect_to_https)
} else {
gateway_router.clone()
Expand All @@ -146,7 +146,7 @@ pub async fn main(cli: &Cli) -> Result<(), Error> {
tasks.add("http_server", http_server);

// Create HTTPS server
if !cli.http_server.insecure_serve_http_only {
if !cli.http_server.http_server_insecure_serve_http_only {
// Prepare TLS related stuff
let rustls_cfg = tls::setup(
cli,
Expand Down

0 comments on commit 9d3e931

Please sign in to comment.