mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-11 16:07:09 -06:00
Just use static 5800 port
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!("127.0.0.1:{}", port);
|
||||
// let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
|
||||
let addr = format!("0.0.0.0:{}", "5800");
|
||||
tracing_subscriber::fmt().init();
|
||||
|
||||
let router = Router::new().get(hello);
|
||||
|
||||
Reference in New Issue
Block a user