mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
hmm ..
This commit is contained in:
@@ -217,7 +217,9 @@ var cls = require('../middleware/cls');
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
uid: socket.uid,
|
uid: socket.uid,
|
||||||
body: {event: event || data[0], params: data[1], payload: payload},
|
params: data[1],
|
||||||
|
method: event,
|
||||||
|
body: payload,
|
||||||
ip: headers['x-forwarded-for'] || socket.ip,
|
ip: headers['x-forwarded-for'] || socket.ip,
|
||||||
host: host,
|
host: host,
|
||||||
protocol: socket.request.connection.encrypted ? 'https' : 'http',
|
protocol: socket.request.connection.encrypted ? 'https' : 'http',
|
||||||
|
|||||||
Reference in New Issue
Block a user