1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00
This commit is contained in:
Rob Ede
2021-04-13 12:44:38 +01:00
parent edd9f14752
commit 4442535a45
3 changed files with 8 additions and 6 deletions

View File

@ -380,7 +380,7 @@ impl Format {
results.push(match cap.get(3).unwrap().as_str() {
"a" => {
if key.as_str() == "r" {
FormatText::RealIPRemoteAddr
FormatText::RealIpRemoteAddr
} else {
unreachable!()
}
@ -434,7 +434,7 @@ enum FormatText {
Time,
TimeMillis,
RemoteAddr,
RealIPRemoteAddr,
RealIpRemoteAddr,
UrlPath,
RequestHeader(HeaderName),
ResponseHeader(HeaderName),
@ -554,7 +554,7 @@ impl FormatText {
};
*self = s;
}
FormatText::RealIPRemoteAddr => {
FormatText::RealIpRemoteAddr => {
let s = if let Some(remote) = req.connection_info().realip_remote_addr() {
FormatText::Str(remote.to_string())
} else {