Skip to content

Commit

Permalink
fix extremely stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jan 24, 2025
1 parent b1df827 commit 30579f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binaries/geph5-bridge/src/listen_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ impl BridgeControlProtocol for State {
}

async fn random_tcp_listener() -> TcpListener {
let rando = rand::thread_rng().gen_range(2048u16..65535);
loop {
let rando = rand::thread_rng().gen_range(2048u16..65535);
match TcpListener::bind(format!("0.0.0.0:{rando}").parse().unwrap()).await {
Ok(listener) => return listener,
Err(err) => {
Expand Down

0 comments on commit 30579f6

Please sign in to comment.