mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 06:57:05 +03:00
Made votes anonymous.
This commit is contained in:
2
index.js
2
index.js
@@ -181,7 +181,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//hash the userID
|
//hash the userID
|
||||||
userID = getHashedUserID(userID);
|
userID = getHashedUserID(userID + UUID);
|
||||||
|
|
||||||
//x-forwarded-for if this server is behind a proxy
|
//x-forwarded-for if this server is behind a proxy
|
||||||
let ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
let ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user