mirror of https://github.com/fafhrd91/actix-web
Fix peer addr string
This commit is contained in:
parent
58c7065f08
commit
ae13a17f87
|
@ -118,7 +118,7 @@ impl ConnectionInfo {
|
||||||
}
|
}
|
||||||
if remote.is_none() {
|
if remote.is_none() {
|
||||||
// get peeraddr from socketaddr
|
// get peeraddr from socketaddr
|
||||||
peer = req.peer_addr.map(|addr| format!("{}", addr));
|
peer = req.peer_addr.map(|addr| format!("{}", addr.ip()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue