mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-13 00:11:28 -06:00
re-add PORT parsing
This commit is contained in:
@@ -7,8 +7,8 @@ async fn hello() -> &'static str {
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
|
let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
|
||||||
let addr = format!("0.0.0.0:{}", "5800");
|
let addr = format!("0.0.0.0:{}", port);
|
||||||
tracing_subscriber::fmt().init();
|
tracing_subscriber::fmt().init();
|
||||||
|
|
||||||
let router = Router::new().get(hello);
|
let router = Router::new().get(hello);
|
||||||
|
|||||||
Reference in New Issue
Block a user