Fix peer addr string

This commit is contained in:
Chronophagus 2019-09-19 18:20:18 +03:00
parent 58c7065f08
commit ae13a17f87
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
} }
} }