change deprecated function

This commit is contained in:
Brandon Thomas committed 2024-03-24 17:57:05 -04:00
1 parent 91b757a3cf
commit 2d3df91c4a
1 file changed
+1 -1
@@ -15,7 +15,7 @@ pub fn get_service_request_ip_address(request: &ServiceRequest) -> String {
// If we're running without the upstream Rust proxy, we can grab 'x-forwarded-for', which is
// populated by the DigitalOcean load balancer.
let ip_address_and_port = request.connection_info()
.remote_addr()
.peer_addr()
.unwrap_or("")
.to_string();
let ip_address = ip_address_and_port.split(":")