From fabc7d4461a99a4d7fca84da669ea6ea5fd61010 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 28 Oct 2026 16:34:42 +0800 Subject: [PATCH] fix: resolve gateway route using the parsed hostname --- crates/gpapi/src/gateway/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpapi/src/gateway/login.rs b/crates/gpapi/src/gateway/login.rs index 77efcf1..2cd7f69 100644 --- a/crates/gpapi/src/gateway/login.rs +++ b/crates/gpapi/src/gateway/login.rs @@ -101,7 +101,7 @@ impl GatewayLoginClient { context .client_ip() .map(str::to_owned) - .or_else(|| detect_local_ipv4(context.host())) + .or_else(|| self.origin.host_str().and_then(detect_local_ipv4)) }); let request = receive_gateway_login( &self.origin,