mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-17 02:19:51 +03:00
- querylog: incorrect client IP when blocked by hosts filter
This commit is contained in:
parent
94d86eee10
commit
29998a8959
1 changed files with 3 additions and 1 deletions
|
@ -561,7 +561,9 @@ func decode(ent *logEntry, str string) {
|
||||||
}
|
}
|
||||||
switch k {
|
switch k {
|
||||||
case "IP":
|
case "IP":
|
||||||
ent.IP = v
|
if len(ent.IP) == 0 {
|
||||||
|
ent.IP = v
|
||||||
|
}
|
||||||
case "T":
|
case "T":
|
||||||
ent.Time, err = time.Parse(time.RFC3339, v)
|
ent.Time, err = time.Parse(time.RFC3339, v)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue