mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
relying on ip
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = {
|
||||
|
||||
let spam = false;
|
||||
try {
|
||||
const user_ip = get(req.connection, 'remoteAddress', false);
|
||||
const user_ip = get(req, 'ip', false);
|
||||
if (!user_ip) {
|
||||
debug('no ip on request');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user