From 2f74c15553fec4ea77a0210a247380623b9801e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 22 Oct 2022 12:51:21 +0200 Subject: [PATCH] chore: 32 max port retries --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f4fba7d..caa6ca0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -285,7 +285,7 @@ fn main() -> Result<()> { bind.set_port(bind.port() + 1); } - if cnt > 10 { + if cnt > 32 { panic!("Couldn't start server.") } else { cnt += 1;