]> Untitled Git - lemmy.git/commit
Fixes regression from #848
authorPierce <contact@mokou.io>
Wed, 8 Jul 2020 06:20:08 +0000 (02:20 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 06:20:08 +0000 (02:20 -0400)
commit2f01e15caeafab6e0a7f00a0af5a9edf3173d9e0
tree1aea39e3db58232acdd27b7c298f3da39b9daf1b
parent8fda7d00d5ec9e415b44aa10cff3c4d735563a20
Fixes regression from #848

The api for actix_web::dev::ConnectionInfo changed from 2.0.0 to 3.0.0. The equivalent of 2.0.0's remote() in 3.0.0 is realip_remote_addr(), not remote_addr().

https://docs.rs/actix-web/2.0.0/actix_web/dev/struct.ConnectionInfo.html#method.remote
https://docs.rs/actix-web/3.0.0-alpha.3/actix_web/dev/struct.ConnectionInfo.html#method.realip_remote_addr
server/src/lib.rs