fix: first port was skipped for challenge hosting
cargo devel CI / cargo CI (push) Successful in 2m1s Details

This commit is contained in:
Christoph J. Scherr 2024-09-08 14:21:30 +02:00
parent 9437eb5a54
commit 546b6e5908
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ impl ChallengeDesc {
hints: hints.iter().map(|a| a.to_string()).collect(), hints: hints.iter().map(|a| a.to_string()).collect(),
solution: solution.to_string(), solution: solution.to_string(),
description: description.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. /// Returns a [`SocketAddr`] for the challenge.