mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 08:28:18 +00:00
change deprecated function
This commit is contained in:
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(":")
|
||||
|
||||
Reference in new issue
Block a user