From f9afdadeb92babf95547f0019f633e4a21f3360e Mon Sep 17 00:00:00 2001 From: Kamal Tufekcic Date: Mon, 27 Jul 2026 10:44:35 +0300 Subject: [PATCH] add dedicated port to test server --- src/profile.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/profile.rs b/src/profile.rs index 2d145b6..5eaf33b 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -23,7 +23,12 @@ impl LaunchSpec { /// The vanilla dedicated-server args to spawn `bots` alive units on `map`, in the exact order the /// live launch requires. pub fn args(&self, map: &str, bots: u32) -> Vec { - let mut a: Vec = vec!["-dedicated".into(), "-insecure".into()]; + let mut a: Vec = vec![ + "-dedicated".into(), + "-insecure".into(), + "-port".into(), + "24015".into(), + ]; for (k, v) in self.pre_map_cvars { a.push(format!("+{k}")); a.push((*v).into()); @@ -338,6 +343,8 @@ mod tests { let expected: Vec = [ "-dedicated", "-insecure", + "-port", + "24015", "+game_type", "1", "+game_mode",