rdserver: Rename variable to ACRATE_RDSERVER_BIND_ADDRESS

This commit is contained in:
Steffo 2024-12-13 04:37:34 +01:00
parent c0fb191581
commit 8ef530658f
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
micronfig::config!(
ACRATE_WEBFINGER_BIND_ADDRESS: String,
ACRATE_RDSERVER_BIND_ADDRESS: String,
);

View file

@ -26,7 +26,7 @@ async fn main() -> anyhow::Result<std::convert::Infallible> {
log::trace!("Axum router created successfully!");
log::trace!("Creating Tokio listener...");
let bind_address = config::ACRATE_WEBFINGER_BIND_ADDRESS();
let bind_address = config::ACRATE_RDSERVER_BIND_ADDRESS();
let listener = tokio::net::TcpListener::bind(bind_address)
.await
.context("failed to bind listener to address")?;