Skip to content

Commit

Permalink
Fix 'TcpListener' port required regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed May 4, 2024
1 parent 5f9ff3f commit 370287c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/src/listener/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ impl Bind for TcpListener {
e.map(|e| e.tcp()).unwrap_or(Some(default))
}).map_err(Left)?;

if let Some(port) = figment.extract_inner("port").map_err(Left)? {
if figment.contains("port") {
let port = figment.extract_inner("port").map_err(Left)?;
address.set_port(port);
}

Expand Down

0 comments on commit 370287c

Please sign in to comment.