summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/cli.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/cli.rs b/src/bin/cli.rs
index 7b18cc3b..6f089353 100644
--- a/src/bin/cli.rs
+++ b/src/bin/cli.rs
@@ -40,7 +40,7 @@ enum Commands {
},
Server {
/// Address to bind to
- #[arg(short, long, env = "BIND_ADDR")]
+ #[arg(short, long, env = "BIND_ADDR", default_value = "127.0.0.1:50051")]
addr: String,
},
}
@@ -82,9 +82,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.init();
tracing::info!(address = %addr, "Starting authorization server");
- let cedar = authzd::authorization::CedarAuthorizer::default();
- let server = authzd::authorization::Server::new(cedar)?;
- server.serve(addr.parse().unwrap()).await?;
+ authzd::authorization::Server::new(authzd::authorization::CedarAuthorizer::default())?
+ .serve(addr.parse().unwrap())
+ .await?;
}
}