From 546b6e5908595bdc82a3fc2a9958000280b2447d Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 8 Sep 2024 14:21:30 +0200 Subject: [PATCH] fix: first port was skipped for challenge hosting --- src/challenge/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/challenge/mod.rs b/src/challenge/mod.rs index d0b76a5..48fa063 100644 --- a/src/challenge/mod.rs +++ b/src/challenge/mod.rs @@ -41,7 +41,7 @@ impl ChallengeDesc { hints: hints.iter().map(|a| a.to_string()).collect(), solution: solution.to_string(), description: description.to_string(), - addr: SocketAddr::new(base_addr.ip(), base_addr.port() + id as u16), + addr: SocketAddr::new(base_addr.ip(), base_addr.port() + id as u16 - 1), } } /// Returns a [`SocketAddr`] for the challenge.