generated from PlexSheep/rs-base
fix: first port was skipped for challenge hosting
cargo devel CI / cargo CI (push) Successful in 2m1s
Details
cargo devel CI / cargo CI (push) Successful in 2m1s
Details
This commit is contained in:
parent
9437eb5a54
commit
546b6e5908
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue