mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-22 13:45:13 +02:00
never return port in realip_remote_addr
(#2554)
This commit is contained in:
@@ -547,7 +547,7 @@ impl FormatText {
|
||||
*self = FormatText::Str(s.to_string());
|
||||
}
|
||||
FormatText::RemoteAddr => {
|
||||
let s = if let Some(peer) = req.connection_info().remote_addr() {
|
||||
let s = if let Some(peer) = req.connection_info().peer_addr() {
|
||||
FormatText::Str((*peer).to_string())
|
||||
} else {
|
||||
FormatText::Str("-".to_string())
|
||||
|
Reference in New Issue
Block a user