Skip to content

Commit 0f8c839

Browse files
committed
Fix port
1 parent aa50396 commit 0f8c839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ pub fn get_allowed_moves(board: [[i16; 3]; 3]) -> Vec<[usize; 2]> {
397397
async fn main() -> std::io::Result<()> {
398398
let mut app_data = AppData::parse();
399399
app_data.version = env!("CARGO_PKG_VERSION").to_string();
400+
let port = app_data.clone().port;
400401
std::env::set_var("RUST_APP_LOG", app_data.clone().log);
401402
pretty_env_logger::init_custom_env("RUST_APP_LOG");
402403

@@ -406,7 +407,7 @@ async fn main() -> std::io::Result<()> {
406407
.service(hello)
407408
.service(handle_request)
408409
})
409-
.bind(("127.0.0.1", 8083))?
410+
.bind(("127.0.0.1", port))?
410411
.run()
411412
.await
412413
}

0 commit comments

Comments
 (0)