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