Made votes anonymous.

This commit is contained in:
Ajay Ramachandran
2019-07-28 23:00:54 -04:00
parent 3720681f84
commit 4e732b6367

View File

@@ -181,7 +181,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
}
//hash the userID
userID = getHashedUserID(userID);
userID = getHashedUserID(userID + UUID);
//x-forwarded-for if this server is behind a proxy
let ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;