Skip to content

Commit

Permalink
change local port
Browse files Browse the repository at this point in the history
  • Loading branch information
felix1251 committed May 4, 2024
1 parent 7401474 commit aa741ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ rust-jwt-auth-boilerplate
└── README.md
```

### Features

- [x] Axum (Routing, Middleware, etc..)
- [x] JsonWebToken
- [x] PostgreSQL
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ pub async fn run(db_uri: String) {
tracing::debug!("DB Connected");

let services = routes::create_routes(db).await;
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
.await
.unwrap();
let local_address = listener.local_addr().unwrap();

tracing::debug!("listening on http://{}", local_address);
Expand Down

0 comments on commit aa741ef

Please sign in to comment.