Merge pull request #11 from trufflesecurity/remote-ip

fix remote ip
This commit is contained in:
Dustin Decker 2023-01-27 18:16:10 -08:00 committed by GitHub
commit 732942c329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
app.js
View file

@ -256,7 +256,7 @@ async function get_app_server() {
id: payload_fire_id,
user_id: userID,
url: req.body.uri,
ip_address: req.connection.remoteAddress.toString(),
ip_address: req.ip,
referer: req.body.referrer,
user_agent: req.body['user-agent'],
cookies: req.body.cookies,