Merge: - querylog: incorrect client IP when blocked by hosts filter
Close #1329 * commit '29998a8959d9ed4d31d6034eaa3a1ec9d178e191': - querylog: incorrect client IP when blocked by hosts filter
This commit is contained in:
commit
e28fdd37cd
|
@ -561,7 +561,9 @@ func decode(ent *logEntry, str string) {
|
|||
}
|
||||
switch k {
|
||||
case "IP":
|
||||
ent.IP = v
|
||||
if len(ent.IP) == 0 {
|
||||
ent.IP = v
|
||||
}
|
||||
case "T":
|
||||
ent.Time, err = time.Parse(time.RFC3339, v)
|
||||
|
||||
|
|
Loading…
Reference in New Issue