normalize local addrs
This commit is contained in:
parent
69ca1bf099
commit
0afb55168e
1 changed files with 3 additions and 0 deletions
|
|
@ -324,6 +324,9 @@ function setup(req, res, next) {
|
||||||
query: parsed.query,
|
query: parsed.query,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// fixup local addrs
|
||||||
|
if (req.gs.local) req.gs.ip = "::1";
|
||||||
|
|
||||||
// track clients & show first instance of IP
|
// track clients & show first instance of IP
|
||||||
rec.last.push(time);
|
rec.last.push(time);
|
||||||
rec.hits++;
|
rec.hits++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue