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,