Browse Source

remove IP address manipulation

pull/1/head
Rob Colbert 3 years ago
parent
commit
403a8cbe6b
  1. 2
      app/services/link.js

2
app/services/link.js

@ -159,7 +159,7 @@ class LinkService extends SiteService {
/*
* We geo-analyze (but do not store) the IP address.
*/
const ipAddress = (req.ip === '127.0.0.1') ? '104.131.58.173' : req.ip;
const ipAddress = req.ip;
const geo = geoip.lookup(ipAddress);
if (geo) {
visit.geoip = {

Loading…
Cancel
Save