From 3d8e55d00608508c410283f3e1c9f2bf371886e7 Mon Sep 17 00:00:00 2001 From: MasterPtato <23087326+MasterPtato@users.noreply.github.com> Date: Fri, 22 Mar 2024 18:40:37 +0000 Subject: [PATCH] fix: only select primary hostname in mm endpoints (#577) Fixes RVT-3691 ## Changes --- svc/api/matchmaker/src/route/lobbies.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svc/api/matchmaker/src/route/lobbies.rs b/svc/api/matchmaker/src/route/lobbies.rs index a74dab1554..93e62d5634 100644 --- a/svc/api/matchmaker/src/route/lobbies.rs +++ b/svc/api/matchmaker/src/route/lobbies.rs @@ -1422,7 +1422,9 @@ fn build_port( .filter_map(|(proxied_port, _)| { proxied_port .ingress_hostnames - .first() + .iter() + // NOTE: Selects the primary ingress hostname (has no path segments) + .find(|hostname| !hostname.contains('/')) .map(|hostname| (proxied_port, hostname)) }) .map(|(proxied_port, hostname)| {